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 gaborjbernat
Recipients gaborjbernat
Date 2020-05-22.08:34:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590136499.66.0.128776260794.issue40726@roundup.psfhosted.org>
In-reply-to
Content
Reporting an issue from https://github.com/xonsh/xonsh/issues/3581; boils down to, ast.Call used to not define end_lineno in 3.8:

py -3.8 -c 'import ast; type(ast.Call().end_lineno)'                                                                                                                                                                 Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'Call' object has no attribute 'end_lineno'

However in 3.9 is defined with None:

py -3.9 -c 'import ast; type(ast.Call().end_lineno)'

This messes with some other operations in ast, namely https://github.com/python/cpython/blob/master/Lib/ast.py#L233
History
Date User Action Args
2020-05-22 08:34:59gaborjbernatsetrecipients: + gaborjbernat
2020-05-22 08:34:59gaborjbernatsetmessageid: <1590136499.66.0.128776260794.issue40726@roundup.psfhosted.org>
2020-05-22 08:34:59gaborjbernatlinkissue40726 messages
2020-05-22 08:34:59gaborjbernatcreate