Message 132453 - Python tracker (original) (raw)

If we have to preserve backward compatibility of Python AST API, we can do this relatively easily (at the expense of some code complexity):

Alternative implementation is to leave Num/Str/etc classes in C as well, and write visitors (similar to folding one) to convert AST between old and new forms.

Does this sounds reasonable? Should this be posted to python-dev? Should I write a PEP (I'd need some help with this)?

Are there any other big issues preventing this to be merged?