Hacker News new | ask | show | jobs
by jwilk 3347 days ago
I'm confused with the way the "Supported features" section is divided.

Does it mean I can only use f''-strings if the target version is 3.5? Why such a limitation?

2 comments

I think it means that you tell the compiler what version of Python the original source code is in, so it knows how to compile it. So, if your codebase has f''-strings then the compiler needs to know.

That's my guess, anyway.

it means if your target is 3.5 those are the only features that need to be compiled to another form; the lower ones already work