Bug report
I made a typo that made it into the final code:
|
if getattr(cls, '__dictrefoffset__', -1) != 0: |
|
slots.append('__dict__') |
It should had been __dictoffset__ not __dictrefoffset__.
Fixing plan:
- Add tests for C types with
__dictoffset__, so it won't happen again :)
- Fix the typo
Linked PRs