[Numpy-discussion] why does b[:-0] not work, and is there an elegant solution?

Mark Bakker markbak@gmail....
Wed Aug 19 08:28:06 CDT 2009


The winner so far:

x[: -n or None]

works fine when n = 0, relatively elegant, even pretty slick I think.

And I expect it to be quick.

Thanks for all the replys,

Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090819/9d4a4851/attachment.html 


More information about the NumPy-Discussion mailing list