[Numpy-discussion] why does b[:-0] not work, and is there an elegant solution?
Citi, Luca
lciti at essex.ac.uk
Wed Aug 19 08:54:28 EDT 2009
Another solution (elegant?? readable??) :
>> x[slice(-n or None)] # with n == 0, 1, ...
More information about the NumPy-Discussion
mailing list