Serhiy Storchaka <[email protected]> added the comment:
This looks like some Sphinx bug.
In Python 3.8, using Sphinx:
>>> from sphinx.pycode import ast
>>> ast.unparse(ast.parse("('Arial', 8, 'normal')", 'eval').body)
"'Arial', 8, 'normal'"
For comparison, using builtin ast module in Python 3.9:
>>> import ast
>>> ast.unparse(ast.parse("('Arial', 8, 'normal')", 'eval').body)
"('Arial', 8, 'normal')"
----------
nosy: +georg.brandl, serhiy.storchaka
type: -> behavior
versions: +Python 3.11
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue45397>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com