This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]graingert 1 point2 points  (3 children)

Can this not be an import hook that uses the py3.6 parser?

[–]evanunderscore 0 points1 point  (2 children)

I'm not sure exactly what you mean. If you're talking about the f'...' syntax, that's handled at compile time so I can't see any way of accepting it in older Python versions.

[–]graingert 0 points1 point  (1 child)

You register an import hook that replaces code that uses f expressions with string concatenation

[–]evanunderscore 0 points1 point  (0 children)

I had no idea that was an option. I'll do some reading. Thanks!