2 ms·
Simplified to this in Py 3.6: f'{one} {two}'
by mixmastamyk 11y ago
Simplified to this in Py 3.6:
f'{one} {two}'
- teddyh 11y agoDo you have a reference for that? Wouldn’t that be introducing a huge security hole in all programs?
- mixmastamyk 11y agoPEP 498. Literals only, does not add any additional security problems.
- teddyh 11y agoAh, right; I missed the ‘f’ prefix. And since it’s only done when parsing the expression, it is not a security problem. Thanks!
- kazagistar 11y agoIs it actually happening? Proper string interpolation? In all its extendable glory?
- mixmastamyk 11y agoPep was accepted, and I believe can be tried in a nightly or alpha release. It is not extensible though, GvR didn't see much utility, yet at least.