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 hauntsaninja
Recipients hauntsaninja
Date 2020-04-21.03:58:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587441488.8.0.801232249249.issue40349@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-04-21 03:58:08hauntsaninjasetrecipients: + hauntsaninja
2020-04-21 03:58:08hauntsaninjasetmessageid: <1587441488.8.0.801232249249.issue40349@roundup.psfhosted.org>
2020-04-21 03:58:08hauntsaninjalinkissue40349 messages
2020-04-21 03:58:08hauntsaninjacreate