How to "wow" someone new to Python
alan at scooby-doo.csail.mit.edu
Wed Jan 21 22:44:19 CET 2015
Chris Angelico <rosuav at gmail.com> writes:
> ..., and I would guess a 64-bit Java would
> also raise the limit.
Even in a 64-bit Java, the _type_ returned by String.length() is 'int',
and is thus at most (2**31 - 1). This isn't a problem for strings,
which never get that long in practice, but for some other Java datatypes
(e.g., Buffer) it is a real problem. Score one for untyped languages.
More information about the Python-list