Yury V. Zaytsev, 05.07.2013 23:01: > On Fri, 2013-07-05 at 15:52 +0200, Stefan Behnel wrote: >> Cython has nothing to do with this. > > Well, Cython does abstract differences for instance in terms of string > handling between Py2.x and Py3.x, so that in fact one can enjoy it as a > "porting" instrument.
To a certain extent, yes. However, hiding this specific difference would mean that a) we'd have to backport the format string parser from CPython and b) it would only work for literal format strings, i.e. this won't work: def func(fstr): return fstr.format(1,2) func('{} abc {}') Meaning that even just a slight refactoring might then break your code. This kind of partial "make it look as if it worked" is a very bad idea. Stefan _______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel