[issue25179] PEP 498 f-strings need to be documented

Emanuel Barry report at bugs.python.org
Sat Nov 7 17:04:26 EST 2015


Emanuel Barry added the comment:

I was under the impression that they would work without any additional work (as they'd have access to the outer scope). Of course, trying to access a local variable would be an error as it's not yet defined.

My point is more that we shouldn't have to account for such a small case - if they can be used, then let them be used, and if they can't, then don't (unless the modification is straightforward, which it might not be).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25179>
_______________________________________


More information about the Python-bugs-list mailing list