-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
_struct.Struct should be immutable, missing Py_TPFLAGS_IMMUTABLETYPE flag #94254
Labels
Comments
kumaraditya303
added
type-bug
An unexpected behavior, bug, or error
extension-modules
C modules in the Modules dir
labels
Jun 25, 2022
Just wondering: why? Are there benefits to that immutability? |
Ah, I see there's related discussion at #88074. |
Yes, it was the previous issue 1 where most of this was fixed but some were left which should be fixed. Footnotes |
Yeah, please fix. |
Thanks for noticing this, and thanks for the PR! |
erlend-aasland
pushed a commit
that referenced
this issue
Jun 26, 2022
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jun 26, 2022
(cherry picked from commit 17ed560) Co-authored-by: Kumar Aditya <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jun 26, 2022
(cherry picked from commit 17ed560) Co-authored-by: Kumar Aditya <[email protected]>
miss-islington
added a commit
that referenced
this issue
Jun 26, 2022
(cherry picked from commit 17ed560) Co-authored-by: Kumar Aditya <[email protected]>
miss-islington
added a commit
that referenced
this issue
Jun 26, 2022
(cherry picked from commit 17ed560) Co-authored-by: Kumar Aditya <[email protected]>
Fixed by #94269 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
In Python 3.8:
On main:
This happens because
_struct.Struct
is missingPy_TPFLAGS_IMMUTABLETYPE
in type flags.cc: @erlend-aasland @encukou
The text was updated successfully, but these errors were encountered: