[Numpy-discussion] why does b[:-0] not work, and is there an elegant solution?.
Wed Aug 19 18:40:25 CDT 2009
Use N = len(b) and then b[:N-n]
(mobile phone of)
On Aug 19, 2009, at 7:25 AM, Mark Bakker <firstname.lastname@example.org> wrote:
> Hello list,
> I compute the index of the last term in an array that I need and
> call the index n.
> I can then call the array b as
> If I need all terms in the array, the logical syntax would be:
> but that doesn't work. Any reason why that has not been implemented?
> Any elegant workaround?
> Thanks, Mark
> NumPy-Discussion mailing list
More information about the NumPy-Discussion