[pypy-issue] Issue #2847: pypy2 6.0.0 unbound method has type `method` not `instancemethod` (pypy/pypy)
Jeong YunWon
issues-reply at bitbucket.org
Thu Jun 14 03:13:14 EDT 2018
New issue 2847: pypy2 6.0.0 unbound method has type `method` not `instancemethod`
https://bitbucket.org/pypy/pypy/issues/2847/pypy2-600-unbound-method-has-type-method
Jeong YunWon:
Code:
```
class A(object):
def f(self):
pass
print(A.f)
print(type(A.f))
```
Result of pypy2 6.0.0
```
$ python test.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 t.py
<unbound method A.f>
<type 'instancemethod'>
$ python --version
Python 2.7.13
```
More information about the pypy-issue
mailing list