mercurial 1.3.1 bug report
Benoit Boissinot
bboissin at gmail.com
Tue Feb 16 17:53:33 UTC 2010
On Tue, Feb 16, 2010 at 06:18:31PM +0100, Dirkjan Ochtman wrote:
> 2010/2/16 Benoit Boissinot <bboissin at gmail.com>:
> >>>> class test(object):
> > ... def __len__(self):
> > ... return 2**35
> > ...
> >>>> x = test()
> >>>> len(x)
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > OverflowError: long int too large to convert to int
>
> That seems like a Python bug?
I don't think they want to change the len() protocol :/
related issues:
http://bugs.python.org/issue7942
http://bugs.python.org/issue2690
Benoit
--
:wq
More information about the Mercurial
mailing list