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 sobolevn
Recipients BTaskaya, JelleZijlstra, Kodiologist, benjamin.peterson, pablogsal, sobolevn
Date 2022-01-25.19:53:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643140432.69.0.144309142447.issue46520@roundup.psfhosted.org>
In-reply-to
Content
I can confirm that it happens on all versions from 3.9 to 3.11 (main).

```
Python 3.9.9 (main, Dec 21 2021, 11:35:28) 
[Clang 11.0.0 (clang-1100.0.33.16)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ast
>>> ast.unparse(ast.parse("𝕕𝕖𝕗 = 1"))
'def = 1'
>>> exec(ast.unparse(ast.parse("𝕕𝕖𝕗 = 1")))  # SyntaxError
```

```
Python 3.11.0a4+ (heads/main-dirty:ef3ef6fa43, Jan 20 2022, 20:48:25) [Clang 11.0.0 (clang-1100.0.33.16)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ast
>>> ast.unparse(ast.parse("𝕕𝕖𝕗 = 1"))
'def = 1'
>>> exec(ast.unparse(ast.parse("𝕕𝕖𝕗 = 1")))  # SyntaxError
```
History
Date User Action Args
2022-01-25 19:53:52sobolevnsetrecipients: + sobolevn, benjamin.peterson, JelleZijlstra, Kodiologist, pablogsal, BTaskaya
2022-01-25 19:53:52sobolevnsetmessageid: <1643140432.69.0.144309142447.issue46520@roundup.psfhosted.org>
2022-01-25 19:53:52sobolevnlinkissue46520 messages
2022-01-25 19:53:52sobolevncreate
Morty Proxy This is a proxified and sanitized view of the page, visit original site.