[issue2723] Truncate __len__() at sys.maxsize

Antoine Pitrou report at bugs.python.org
Wed Apr 30 20:31:36 CEST 2008


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

Gasp, having len() return something else than the true container size
sounds horrible. At least raising OverflowError makes it clear that
something wrong is going on...

----------
nosy: +pitrou

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


More information about the Python-bugs-list mailing list