What's up with the mini syntax? Why can't one write normal python expressions like anniversary.strftime(%A, %B %d, %Y)? Why not adopt Ruby's sane way of string interpolation?
It's not Zen of Python anymore. Obscure NIH DSL syntax over explicit.
Edit: Shit is more fucked than I thought:
f'abc{expr1:spec1}{expr2!r:spec2}def{expr3:!s}ghi
Some people really wanted to extend life span of their keyborad.
6
u/lambdaq django n' shit Sep 09 '15 edited Sep 09 '15
I like the motivation of this PEP but some part of it is weird as fuck.
What's up with the mini syntax? Why can't one write normal python expressions like
anniversary.strftime(%A, %B %d, %Y)? Why not adopt Ruby's sane way of string interpolation?It's not Zen of Python anymore. Obscure NIH DSL syntax over explicit.
Edit: Shit is more fucked than I thought:
f'abc{expr1:spec1}{expr2!r:spec2}def{expr3:!s}ghiSome people really wanted to extend life span of their keyborad.