Message235122
Prepare for a partial reversal of opinion. :)
Indexing *can* actually create all-negative suboffsets in a natural way:
>>> from _testbuffer import *
>>> nd = ndarray([1,2,3,4,5,6,7,8,9,10,11,12], shape=[3,4], flags=ND_PIL)
>>> nd.tolist()
[[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]]
>>>
>>> x = nd[1]
>>> x.tolist()
[5, 6, 7, 8]
>>> x.suboffsets
(-1,)
>>>
This leaves me +-0 for the change, with the caveat that applications
might break. |
|
Date |
User |
Action |
Args |
2015-01-31 17:53:23 | skrah | set | recipients:
+ skrah, pitrou, rhansen, seberg |
2015-01-31 17:53:23 | skrah | set | messageid: <1422726803.1.0.67307458532.issue23352@psf.upfronthosting.co.za> |
2015-01-31 17:53:23 | skrah | link | issue23352 messages |
2015-01-31 17:53:22 | skrah | create | |
|