How to "wow" someone new to Python

Alan Bawden alan at scooby-doo.csail.mit.edu
Wed Jan 21 16:44:19 EST 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.

-- 
Alan Bawden



More information about the Python-list mailing list