[New-bugs-announce] [issue40614] ast.parse doesn't respect feature_version for debug f-strings
Shantanu
report at bugs.python.org
Wed May 13 03:17:35 EDT 2020
New submission from Shantanu <hauntsaninja at gmail.com>:
```
~master λ python3.8
Python 3.8.2 (default, Apr 21 2020, 00:39:48)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ast
>>> ast.parse('''f"{x=}"''') # should work
<_ast.Module object at 0x10f81af40>
>>> ast.parse('''f"{x=}"''', feature_version=(3, 6)) # should fail, but doesn't
<_ast.Module object at 0x10f857d00>
```
----------
messages: 368763
nosy: hauntsaninja
priority: normal
severity: normal
status: open
title: ast.parse doesn't respect feature_version for debug f-strings
type: behavior
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40614>
_______________________________________
More information about the New-bugs-announce
mailing list