Skip to content

Commit 9cea398

Browse files
committed
Issue #19655: Replace the ASDL parser carried with CPython
The new parser does not rely on Spark (which is now removed from our repo), uses modern 3.x idioms and is significantly smaller and simpler. It generates exactly the same AST files (.h and .c), so in practice no builds should be affected.
1 parent 9b5167f commit 9cea398

File tree

4 files changed

+294
-1202
lines changed

4 files changed

+294
-1202
lines changed

‎Misc/NEWS‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ Core and Builtins
5757

5858
- Issue #19995: %c, %o, %x, and %X now raise TypeError on non-integer input.
5959

60+
- Issue #19655: The ASDL parser - used by the build process to generate code for
61+
managing the Python AST in C - was rewritten. The new parser is self contained
62+
and does not require to carry long the spark.py parser-generator library;
63+
spark.py was removed from the source base.
64+
6065
- Issue #12546: Allow \x00 to be used as a fill character when using str, int,
6166
float, and complex __format__ methods.
6267

0 commit comments

Comments
 (0)