[pypy-dev] behaviour difference int-subclasses pypy 1.5 to cpython 2.6.6.
Massa, Harald Armin
chef at ghum.de
Tue Aug 16 13:32:26 CEST 2011
>
> On Tue, Aug 16, 2011 at 11:59 AM, Massa, Harald Armin <chef at ghum.de>
> wrote:
> >>>> class fisch(int):
> > ... def __init__(self, value):
> > ... int.__init__(value)
>
> You probably mean "int.__init__(self, value)" here. Your code is buggy :-)
>
just submitted the fix to the pyPdf author :) my workaround was
def __init__(self, value):
int.__init__(int(value))
.. so that I could run it under PyPy :)
so, I understand that the cPython behaviour is rather buggy. Good to have
another Python implementation :)
Thanks for the fast response,
Harald
--
GHUM GmbH
Harald Armin Massa
Spielberger Straße 49
70435 Stuttgart
0173/9409607
Amtsgericht Stuttgart, HRB 734971
-
persuadere.
et programmare
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20110816/97ee74e2/attachment.html>
More information about the pypy-dev
mailing list