New submission from Christoph Reiter <[email protected]>: >>>> from ctypes import c_uint >>>> class Foo(c_uint): .... def __int__(self): .... return 42 .... >>>> int(Foo()) CPython: 42 PyPy: ValueError: invalid literal for int() with base 10: ''
maybe related: int(c_uint()) also fails with the same error ---------- messages: 5581 nosy: lazka, pypy-issue priority: bug status: unread title: ctypes: __int__ not called for ctype subclass ________________________________________ PyPy bug tracker <[email protected]> <https://bugs.pypy.org/issue1454> ________________________________________ _______________________________________________ pypy-issue mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-issue
