Message364504
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. |
|
Date |
User |
Action |
Args |
2020-03-18 09:38:50 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
2020-03-18 09:38:50 | serhiy.storchaka | set | messageid: <1584524330.37.0.654792714903.issue39999@roundup.psfhosted.org> |
2020-03-18 09:38:50 | serhiy.storchaka | link | issue39999 messages |
2020-03-18 09:38:50 | serhiy.storchaka | create | |
|