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 serhiy.storchaka
Recipients serhiy.storchaka
Date 2020-03-18.09:38:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584524330.37.0.654792714903.issue39999@roundup.psfhosted.org>
In-reply-to
Content
The proposed PR fixes some issues related to recent changes in the AST node classes.

1. Re-add removed classes Suite, Param, AugLoad and AugStore. They are not used in Python 3, are not created by the parser and are not accepted by the compiler. Param was used in 2.7, other classes were not used longer time. But some third-party projects (e.g. pyflakes) use them for isinstance checks.

2. Add docstrings for all dummy AST classes (Constant subclasses, Index, ExtTuple and the above four classes). Otherwise they inherited docstrings from the parent class.

3. Add docstrings for all attribute aliases.

4. Set __module__ = "ast" instead of "_ast" for all classes defined in the _ast module. Otherwise the help for the ast module would show only dummy classes, not actual AST node classes. It also makes pickles more compatible between versions.
History
Date User Action Args
2020-03-18 09:38:50serhiy.storchakasetrecipients: + serhiy.storchaka
2020-03-18 09:38:50serhiy.storchakasetmessageid: <1584524330.37.0.654792714903.issue39999@roundup.psfhosted.org>
2020-03-18 09:38:50serhiy.storchakalinkissue39999 messages
2020-03-18 09:38:50serhiy.storchakacreate