Amaury Forgeot d Arc <[email protected]> added the comment:
It's somehow related to the __buffer__ method:
class Foo(object):
def __int__(self):
return 42
def __buffer__(self):
return buffer("12.34")
int(Foo())
Fails with ValueError: invalid literal for int() with base 10: '12.34'
...in CPython, string and buffers are processed after __int__; pypy should do
the same.
tag:easy
----------
nosy: +amaury
status: unread -> chatting
________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1454>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-issue