Batuhan <[email protected]> added the comment:
This is actually specified behavior in PEP 498 https://www.python.org/dev/peps/pep-0498/#expression-evaluation > Expressions are parsed with the equivalent of ast.parse('(' + expression + > ')', '<fstring>', 'eval') ---------- nosy: +BTaskaya _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue38964> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
