[issue39564] Parsed expression has wrong col_offset when concatenating f-strings

Guido van Rossum report at bugs.python.org
Wed Feb 5 21:58:13 EST 2020


Guido van Rossum <guido at python.org> added the comment:

Wow. Do you still have a branch with that non-working patch? Maybe there are some ideas that can be salvaged.

I'm wondering if maybe we're better leaving f-strings alone? The current code is quite voluminous, but it looks as if by the time you've addressed everything you mention using additional tokenizer state, you might end up with just as much or more convoluted code... F-strings totally rule, despite the current limitations!

----------

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


More information about the Python-bugs-list mailing list