
26 Mar
2016
26 Mar
'16
5:32 p.m.
Koos Zevenhoven writes:
One downside to p-strings like this is that they don't help you when you have the path in a plain str variable (i.e. not a literal),
IMO that kills this simple form of the idea, since hard-coding paths is a bad idea in many many programs, and paths are naturally derived from user input in a host of others. It becomes an attractive nuisance.
How about generalizing f-strings, or perhaps giving p-strings (some of) the power of f-strings?