[Cython] PEP 498: literal string interpolation (f-strings)
Stefan Behnel
stefan_ml at behnel.de
Mon Mar 21 15:45:17 EDT 2016
Hi all!
Jelle Zijlstra has implemented this and contributed his implementation;
I've given it some final touches.
https://github.com/cython/cython/pull/501
The PEP has some examples for this new (Py3.6) feature:
https://www.python.org/dev/peps/pep-0498/
Not sure if this still qualifies for 0.24 at this point, but it certainly
is a very nice language feature. I got all CPython tests working (with
minor deviations in Py2.6 where str.format() is "less optimal"), so this
seems like a reasonable thing to add.
Stefan
More information about the cython-devel
mailing list