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 Tomasz Pytel
Recipients Tomasz Pytel
Date 2020-05-26.14:06:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590501970.38.0.210271516775.issue40779@roundup.psfhosted.org>
In-reply-to
Content
When calling a function with a single argument which is an unparenthesized generator expression the end column for the AST node is incorrect, it is one greater than the start of the function call parentheses where I assume it should be one past the closing parentheses.

This call:

func(i for i in range(3))

Generates the following node for the generator expression (line:col_offset -> end_line:end_col_offset):

<_ast.GeneratorExp object at 0x7f3ba61f78c0> .. 1:4 -> 1:5
History
Date User Action Args
2020-05-26 14:06:10Tomasz Pytelsetrecipients: + Tomasz Pytel
2020-05-26 14:06:10Tomasz Pytelsetmessageid: <1590501970.38.0.210271516775.issue40779@roundup.psfhosted.org>
2020-05-26 14:06:10Tomasz Pytellinkissue40779 messages
2020-05-26 14:06:10Tomasz Pytelcreate