-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect slot check: typo in __dictoffset__
#123935
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
stdlib
Python modules in the Lib dir
topic-dataclasses
type-bug
An unexpected behavior, bug, or error
Comments
sobolevn
added
type-bug
An unexpected behavior, bug, or error
stdlib
Python modules in the Lib dir
topic-dataclasses
labels
Sep 11, 2024
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 :) |
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Sep 11, 2024
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Sep 11, 2024
sobolevn
changed the title
Incorrect slot check: typo in
Incorrect slot check: typo in Sep 11, 2024
__dictoffest__
__dictoffset__
vstinner
added
needs backport to 3.12
bug and security fixes
needs backport to 3.13
bugs and security fixes
labels
Sep 11, 2024
picnixz
added
3.12
bugs and security fixes
3.13
bugs and security fixes
and removed
needs backport to 3.12
bug and security fixes
needs backport to 3.13
bugs and security fixes
labels
Sep 11, 2024
sobolevn
added a commit
that referenced
this issue
Sep 12, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Sep 12, 2024
…GH-123941) (cherry picked from commit ac918cc) Co-authored-by: sobolevn <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Sep 12, 2024
…GH-123941) (cherry picked from commit ac918cc) Co-authored-by: sobolevn <[email protected]>
This was referenced Sep 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
stdlib
Python modules in the Lib dir
topic-dataclasses
type-bug
An unexpected behavior, bug, or error
Bug report
I made a typo that made it into the final code:
cpython/Lib/dataclasses.py
Lines 1211 to 1212 in 00ffdf2
It should had been
__dictoffset__
not__dictrefoffset__
.Fixing plan:
__dictoffset__
, so it won't happen again :)Linked PRs
_get_slots
indataclasses.py
#123941_get_slots
indataclasses.py
(GH-123941) #123991_get_slots
indataclasses.py
(GH-123941) #123992The text was updated successfully, but these errors were encountered: