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 Kodiologist
Recipients Kodiologist
Date 2022-01-25.15:06:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643123177.1.0.632269925829.issue46520@roundup.psfhosted.org>
In-reply-to
Content
This works:

    𝕕𝕖𝕗 = 1

This raises SyntaxError:

    import ast
    exec(ast.unparse(ast.parse("𝕕𝕖𝕗 = 1")))

It looks like `ast.parse` creates a `Name` node with `id='def'`, which is correct per PEP 3131, but `ast.unparse` doesn't know it needs to mangle the output somehow, as "𝕕𝕖𝕗" or a similar Unicode replacement.
History
Date User Action Args
2022-01-25 15:06:17Kodiologistsetrecipients: + Kodiologist
2022-01-25 15:06:17Kodiologistsetmessageid: <1643123177.1.0.632269925829.issue46520@roundup.psfhosted.org>
2022-01-25 15:06:17Kodiologistlinkissue46520 messages
2022-01-25 15:06:17Kodiologistcreate