TypeError: slice index must be int ?
Skip Montanaro
skip at mojam.com
Wed Jan 5 14:40:05 EST 2000
Hao> Is it possible to use long int (say 2000000000L) to slice a string
Hao> with gigabytes size?
Apparently not:
>>> import string
>>> string.letters[5L:10L]
Traceback (innermost last):
File "<stdin>", line 1, in ?
TypeError: 'slice index must be int'
Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/
847-971-7098 | Python: Programming the way Guido indented...
More information about the Python-list
mailing list