3 ms·
A couple of years ago I wrote some Python code which took advantage of this syntax. Then it turned it had to run in an environment without it. I wrote a simple
by kazinator 6y ago
A couple of years ago I wrote some Python code which took advantage of this syntax. Then it turned it had to run in an environment without it.
I wrote a simple Awk script to convert Python with f-string syntax to syntax without it.
(The program had a function to do a more or less proper lexical analysis job; not some flimsy regex substitution hack.)
- renewiltord 6y agoShould you ever find yourself in a situation like that, https://github.com/python-rope/rope https://github.com/python-rope/rope might help.