[pypy-issue] Issue #2659: TypeError in inspect.getattr_static (pypy/pypy)

Maciek Brynski issues-reply at bitbucket.org
Mon Sep 18 11:30:45 EDT 2017


New issue 2659: TypeError in inspect.getattr_static
https://bitbucket.org/pypy/pypy/issues/2659/typeerror-in-inspectgetattr_static

Maciek Brynski:

Sample code

```
#!python
>>>> import inspect
>>>> inspect.getattr_static(None, "test", False)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/pypy3-v5.8.0-linux64/lib-python/3/inspect.py", line 1551, in getattr_static
    klass_result = _check_class(klass, attr)
  File "/tmp/pypy3-v5.8.0-linux64/lib-python/3/inspect.py", line 1495, in _check_class
    for entry in _static_getmro(klass):
TypeError: 'getset_descriptor' object is not iterable

```
For CPython it is

```
#!python

>>> import inspect
>>> inspect.getattr_static(None, "test", False)
False

```




More information about the pypy-issue mailing list