[pypy-issue] [Bitbucket] Issue #1809: `type(''.find) == type(str.find)` on pypy (pypy/pypy)

Yichao Yu issues-reply at bitbucket.org
Fri Jul 4 11:34:06 CEST 2014

--- you can reply above this line ---

New issue 1809: `type(''.find) == type(str.find)` on pypy

Yichao Yu:

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?


Unsubscribe from issue emails for this repository.

More information about the pypy-issue mailing list