[pypy-issue] Issue #2251: Missing __thisclass__ from super objects (pypy/pypy)

David MacIver issues-reply at bitbucket.org
Sat Mar 5 07:03:07 EST 2016


New issue 2251: Missing __thisclass__ from super objects
https://bitbucket.org/pypy/pypy/issues/2251/missing-__thisclass__-from-super-objects

David MacIver:

The following code passes on CPython 2.7.10 and fails on pypy-4.0.1

```python
class Foo(object):
    pass

assert super(Foo, Foo()).__thisclass__ == Foo
```

I discovered this because IPython's pretty printing uses this attribute to print super objects, which fails on pypy.




More information about the pypy-issue mailing list