New submission from Shantanu <hauntsani...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue40614> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com