Stan Ulbrych
1cc2c954d6
[3.13] gh-140471: Fix buffer overflow in AST node initialization with malformed _fields (GH-140506) ( #140510 )
...
(cherry picked from commit 95953b692d )
2025-10-24 00:38:02 +01:00
Brian Schubert
a2c749d806
[3.13] Fix typo in Lib/test/test_ast/test_ast.py (GH-136767) ( #137356 )
...
`ASTOptimiziationTests` -> `ASTOptimizationTests`
(cherry picked from commit 60146f4f6f )
Co-authored-by: Hunter Hogan <hunterhogan@users.noreply.github.com>
2025-08-04 08:56:07 +03:00
Serhiy Storchaka
681856c194
[3.13] gh-134718: Fix ast.dump() for empty non-default values (GH-134926) (GH-134936)
...
(cherry picked from commit cc344e8dd0 )
2025-05-30 15:48:48 +00:00
TERESH1
a719e5fbb6
[3.13] gh-133516: Raise ValueError when constants True, False or None are used as an identifier after NFKC normalization (GH-133523) ( #133615 )
2025-05-08 12:18:26 +01:00
sobolevn
7a8364460d
[3.13] gh-130775: Allow negative locations in ast (GH-130795) ( #132243 )
...
(cherry picked from commit bc5233b6a5 )
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-04-08 10:47:24 +02:00
Miss Islington (bot)
265bc19b84
[3.13] gh-126105: Fix crash in ast module, when ._fields is deleted (GH-126115) ( #126130 )
...
gh-126105: Fix crash in `ast` module, when `._fields` is deleted (GH-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 b2eaa75b17 )
Co-authored-by: sobolevn <mail@sobolevn.me>
2024-10-29 16:07:32 +00:00
Miss Islington (bot)
19a1f18740
[3.13] gh-123344: Add missing ast optimizations for PEP 696 (GH-123377) ( #123427 )
...
(cherry picked from commit be083cee34 )
Co-authored-by: Bogdan Romanyuk <65823030+wrongnull@users.noreply.github.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-08-28 14:02:34 +00:00
Miss Islington (bot)
69b104a4f1
[3.13] gh-122666: Tests for ast optimizations (GH-122667) ( #123359 )
...
(cherry picked from commit 9f9b00d52c )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-08-27 06:41:37 -07:00
Kirill Podoprigora
b5e8b10de7
[3.13] gh-122292: Split up `Lib/test/test_ast.py` into a couple of … ( #122393 )
...
[3.13] gh-122292: Split up ``Lib/test/test_ast.py`` into a couple of files (GH-122293)
(cherry picked from commit 9187484dd9 )
2024-07-29 16:16:46 +02:00