[issue43695] Improve `=` in f-strings

Serhiy Storchaka report at bugs.python.org
Thu Apr 1 10:15:17 EDT 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I think it goes too far. It was initially designed as a simple for implementation and use feature which covers a large amount of use cases of using f-strings for debugging. You propose to add syntactically a new postfix operator which is valid only in "="-substisutions in f-strings, with complex semantic. It would be difficult to implement, and it would significantly complicate Python grammar. Also it will prevent using ? for other purposes in Python expressions in future.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43695>
_______________________________________


More information about the Python-bugs-list mailing list