[New-bugs-announce] [issue39522] AST Unparser with unicode kinded constants
Batuhan
report at bugs.python.org
Sat Feb 1 18:35:59 EST 2020
New submission from Batuhan <batuhanosmantaskaya at gmail.com>:
>>> from __future__ import annotations
>>> import ast
>>> x: u"a" = 3
>>> __annotations__["x"]
"'a'"
>>> ast.dump(ast.parse(__annotations__["x"])) == ast.dump(ast.parse('u"a"'))
False
I guess before touching constant part, we should wait for GH-17426 (afterward I can prepare a patch)
----------
components: Interpreter Core
messages: 361199
nosy: BTaskaya
priority: normal
severity: normal
status: open
title: AST Unparser with unicode kinded constants
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39522>
_______________________________________
More information about the New-bugs-announce
mailing list