a possibly foolish question about slices

Martin v. Loewis martin at v.loewis.de
Fri Jun 14 14:51:18 EDT 2002


eddie at holyrood.ed.ac.uk (Eddie Corns) writes:

> It frequently bugs me that you can't supply any number for b in <string>[a:b]
> to indicate spanning to the end of the string.
[...]
> So if the designers could fix this for version 2.3 I think we'll all be happy
> :)

Let me introduce Guido's time machine: you can always use sys.maxint
as the value of b.

Regards,
Martin



More information about the Python-list mailing list