Draft PEP: string interpolation with backquotes

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Sun Dec 9 14:23:26 CET 2001


Tue, 04 Dec 2001 15:23:16 GMT, Fredrik Lundh <fredrik at pythonware.com> pisze:

>     i('X=', x, ', Y=', calc_y(x), '.')

It could be nice to have str() working like this instead.
It's backwards compatible with current 0- and 1-argument cases.

Except it doesn't work with unicode() which uses positional arguments
for other things (encoding) :-(  Mandating that they are keyword
arguments would break compatibility.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^
QRCZAK



More information about the Python-list mailing list