[pypy-issue] Issue #1809: `type(''.find) == type(str.find)` on pypy (pypy/pypy)
issues-reply at bitbucket.org
Fri Jul 4 11:34:06 CEST 2014
New issue 1809: `type(''.find) == type(str.find)` on pypy
The expression `type(''.find) == type(str.find)` returns `False` on CPython 2 and 3 and pypy3 but returns True on pypy(2) since both of them are `method`s. This breaks [certain functions](https://github.com/ipython/ipython/pull/5229) on IPython (see the [`isinstance(..., type(str.find))`](https://github.com/ipython/ipython/pull/5229/files#diff-eb94d53c1e543e3e738a804be75f5e4cR69))
Is this possible to fix in PyPy (at least it seems fine (although having different names) in the #py3k branch) or is there another way to distinguish between bound and unbound method in pypy?
More information about the pypy-issue