Message369982
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 |
|
Date |
User |
Action |
Args |
2020-05-26 14:06:10 | Tomasz Pytel | set | recipients:
+ Tomasz Pytel |
2020-05-26 14:06:10 | Tomasz Pytel | set | messageid: <1590501970.38.0.210271516775.issue40779@roundup.psfhosted.org> |
2020-05-26 14:06:10 | Tomasz Pytel | link | issue40779 messages |
2020-05-26 14:06:10 | Tomasz Pytel | create | |
|