New issue 2763: cpyext-defined class instances always have __dict__?
https://bitbucket.org/pypy/pypy/issues/2763/cpyext-defined-class-instances-always-have

pv:

On pypy3-5.10.1 (and pypy2-5.10.0) + numpy master:
```
>>>> import numpy as np
>>>> np.float16(1.0).__dict__
{}
>>>> np.add.__dict__
{}
```
On CPython:
```
>>> import numpy as np
>>> np.float16(1.0).__dict__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'numpy.float16' object has no attribute '__dict__'
>>> np.add.__dict__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'numpy.ufunc' object has no attribute '__dict__'
```


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to