1. 14 3月, 2012 4 次提交
    • Pascal Lamblin's avatar
      Add comments · dcd62712
      Pascal Lamblin 提交于
      dcd62712
    • Pascal Lamblin's avatar
      More reliable way to get platform's bitwidth · 1b0b053d
      Pascal Lamblin 提交于
      Previous code identified Windows 64 as 32-bit.
      1b0b053d
    • Pascal Lamblin's avatar
      Use sys.maxsize instead of maxint. · 2a84ab12
      Pascal Lamblin 提交于
      This should really be maxsize, but under linux and win32, both values are
      equal. That is not the case for win64, though.
      
      TODO: Maybe remove the special case for maxsize in slices, since no
      new slice with maxsize should be produced anymore.
      2a84ab12
    • Pascal Lamblin's avatar
      Remove tensor.__getslice__ to avoid sys.maxsize · e9073c35
      Pascal Lamblin 提交于
      When calling t[1:], for instance, the arguments passed to __getslice__ are
      (1, sys.maxsize), which is a pain to deal with, and can even not be an int
      (but a long).
      
      If __getslice__ does not exist, __getitem__ is called instead, with argument
      slice(1, None, None), which is much more desirable.
      
      __getslice__ is deprecated in python 2.6 anyway.
      e9073c35
  2. 13 3月, 2012 6 次提交
  3. 12 3月, 2012 2 次提交
  4. 10 3月, 2012 15 次提交
  5. 09 3月, 2012 11 次提交
  6. 08 3月, 2012 2 次提交