pypy2 6.0.0 unbound method has type `method` not `instancemethod`
Created originally on Bitbucket by youknowone (Jeong YunWon)
Code:
class A(object):
def f(self):
pass
print(A.f)
print(type(A.f))
Result of pypy2 6.0.0
$ python instancemethod.py
<unbound method A.f>
<type 'method'>
$ python --version
Python 2.7.13 (ab0b9caf307d, Apr 24 2018, 18:05:02)
[PyPy 6.0.0 with GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)]
Expected result (of CPython 2.7.13)
$ python instancemethod.py
<unbound method A.f>
<type 'instancemethod'>
$ python --version
Python 2.7.13
Attachments: instancemethod.py