New issue 1809: `type(''.find) == type(str.find)` on pypy
https://bitbucket.org/pypy/pypy/issue/1809/type-find-type-strfind-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?



_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to