[issue2723] Truncate __len__() at sys.maxsize

Antoine Pitrou report at bugs.python.org
Fri May 9 10:47:20 CEST 2008


Antoine Pitrou <pitrou at free.fr> added the comment:

Well apparently the Java guys think raising an exception would have been
a much better idea than the behaviour they are stuck with.
There's also in interesting proposal there:

""" The ReturnValueTooBigException could even have a method declared as
"long size()" that reports the actual size of the collection. """

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2723>
__________________________________


More information about the Python-bugs-list mailing list