Skip to content

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Oct 29, 2024

Previously, if the ast.AST._fields attribute was deleted, attempts to create a new ast node would crash due to the assumption that _fields always had a non-NULL value. Now it has been fixed by adding an extra check to ensure that _fields does not have a NULL value (this can happen when you manually remove _fields attribute).
(cherry picked from commit b2eaa75)

Co-authored-by: sobolevn [email protected]

pythonGH-126115)

Previously, if the `ast.AST._fields` attribute was deleted, attempts to create a new `as`t node would crash due to the assumption that `_fields` always had a non-NULL value. Now it has been fixed by adding an extra check to ensure that `_fields` does not have a NULL value (this can happen when you manually remove `_fields` attribute).
(cherry picked from commit b2eaa75)

Co-authored-by: sobolevn <[email protected]>
@Eclips4 Eclips4 enabled auto-merge (squash) October 29, 2024 16:00
@Eclips4 Eclips4 merged commit 265bc19 into python:3.13 Oct 29, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants