Open sobolevn opened 6 days ago
I made a typo that made it into the final code: https://github.com/python/cpython/blob/00ffdf27367fb9aef247644a96f1a9ffb5be1efe/Lib/dataclasses.py#L1211-L1212
It should had been __dictoffset__ not __dictrefoffset__.
__dictoffset__
__dictrefoffset__
Fixing plan:
Out of curiosity... how did you find it?
I have a telegram channel, where I post different Python-related posts. Today I posted about how slots work in dataclasses. And one of my readers found this typo :)
Bug report
I made a typo that made it into the final code: https://github.com/python/cpython/blob/00ffdf27367fb9aef247644a96f1a9ffb5be1efe/Lib/dataclasses.py#L1211-L1212
It should had been
__dictoffset__
not__dictrefoffset__
.Fixing plan:
__dictoffset__
, so it won't happen again :)Linked PRs