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 TheRobotCarlson
Recipients TheRobotCarlson
Date 2021-12-14.16:38:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639499930.14.0.345587742085.issue46073@roundup.psfhosted.org>
In-reply-to
Content
Test file linked. When unparsing the output from ast.parse on a simple class, unparse throws an error: 'FunctionDef' object has no attribute 'lineno' for a valid class and valid AST. It fails when programmatically building the module AST as well.

It seems to be from this function: https://github.com/python/cpython/blob/1cbb88736c32ac30fd530371adf53fe7554be0a5/Lib/ast.py#L790
History
Date User Action Args
2021-12-14 16:38:50TheRobotCarlsonsetrecipients: + TheRobotCarlson
2021-12-14 16:38:50TheRobotCarlsonsetmessageid: <1639499930.14.0.345587742085.issue46073@roundup.psfhosted.org>
2021-12-14 16:38:50TheRobotCarlsonlinkissue46073 messages
2021-12-14 16:38:50TheRobotCarlsoncreate