This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients benjamin.peterson, brett.cannon, gvanrossum, njs, yselivanov
Date 2019-02-04.05:32:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549258362.75.0.95656763056.issue35894@roundup.psfhosted.org>
In-reply-to
Content
Yeah, this definitely changed. When we updated typed_ast to Python 3.7 recently, the mypy project looked into making certain arguments to AST certain nodes optional, but the code responsible for those arguments is too weird to easily make that work (it's all generated), so we decided to leave it alone.

IMO the AST in general can't be considered a stable API like other stdlib APIs, since when the syntax changes, well, the AST changes, and sometimes that means that nodes change. For *consumers* of the AST we generally manage to keep things backwards compatible, but for producers, there just is no guarantee.

I think the best way forward is for your code to check the Python version and if it's >= 3.8, pass an empty list as the second argument to Module().

If you look at the changes to Python.asdl in the PR you found, you'll see what other nodes have changed.
History
Date User Action Args
2019-02-04 05:32:43gvanrossumsetrecipients: + gvanrossum, brett.cannon, benjamin.peterson, njs, yselivanov
2019-02-04 05:32:42gvanrossumsetmessageid: <1549258362.75.0.95656763056.issue35894@roundup.psfhosted.org>
2019-02-04 05:32:42gvanrossumlinkissue35894 messages
2019-02-04 05:32:42gvanrossumcreate