Message366909
With Python 3.8:
```
Python 3.8.1 (default, Jan 23 2020, 23:36:06)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ast
>>> ast.parse("(a).x").body[0].value.col_offset
1
```
With Python 3.9:
```
Python 3.9.0a5+ (heads/master:799d7d6, Apr 6 2020, 16:05:37)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ast
>>> ast.parse("(a).x").body[0].value.col_offset
0
```
Maybe related to the new parser? I couldn't find what the environment variable to turn it off was.
For context, I'm trying to get mypy tests to pass with 3.9, but the tests make use of specific col_offsets for error reporting. It would be nice if these continued to match with 3.9 |
|
Date |
User |
Action |
Args |
2020-04-21 03:58:08 | hauntsaninja | set | recipients:
+ hauntsaninja |
2020-04-21 03:58:08 | hauntsaninja | set | messageid: <1587441488.8.0.801232249249.issue40349@roundup.psfhosted.org> |
2020-04-21 03:58:08 | hauntsaninja | link | issue40349 messages |
2020-04-21 03:58:08 | hauntsaninja | create | |
|