[pypy-issue] Issue #2253: Unbound method access creates fresh object each time (pypy/pypy)
issues-reply at bitbucket.org
Sat Mar 5 07:26:17 EST 2016
New issue 2253: Unbound method access creates fresh object each time
The following code passes on CPython 2.7.10 and fails on pypy-4.0.1:
assert object.__repr__ is object.__repr__
The two unbound methods report as == but not identical on pypy.
I discovered this because the check that IPython pretty printing uses to test whether a type needs a custom pretty printer is whether type(c).__repr__ is object.__repr__. This works on CPython but fails on pypy.
More information about the pypy-issue