gh-156909: Fix AST.__repr__ call getting the _fields attribute - #157490
Conversation
|
I'll take care of the backports if there are any conflicts 👍🏽 |
|
Thanks @johnslavik for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
Sorry, @johnslavik and @encukou, I could not cleanly backport this to |
|
Sorry, @johnslavik and @encukou, I could not cleanly backport this to |
|
Sorry, @johnslavik and @encukou, I could not cleanly backport this to |
|
Thank you!
There'll be conflicts for 3.15, but once that gets merged you can tell Miss Islington to backport from there to 3.13 & 3.14. |
Proof this works:
(
every-python= https://github.com/savannahostrowski/every-python)I didn't include a regression test as I find it quite unrealistic. LMK if you'd like the regrtest added anyway.
I also think we can skip news as this isn't a realistic crash.
ast.AST.__repr__can crash on missing_fields#156909