[issue2723] Truncate __len__() at sys.maxsize

Gregory P. Smith report at bugs.python.org
Mon May 12 00:38:41 CEST 2008


Gregory P. Smith <greg at krypto.org> added the comment:

Agreed, having it lie about the size is the WORST possible behavior
because it will silently hide problems.  Lets not do that.

But I must've missed something, why can't __len__ return the correct
value?  Merely because range() is broken and might use it as input? 
Thats no excuse.  Fix range().

----------
nosy: +gregory.p.smith

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


More information about the Python-bugs-list mailing list