[Python-3000] String formating operations in python 3k

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 6 02:03:37 CEST 2006


Ian Bicking wrote:

> Note that if it takes keyword arguments, but doesn't take a single 
> dictionary-like object (like % and string.Template.substitute do), then 
> you lose any ability to use clever or interesting dictionary-like 
> objects for substitution.

If you subclass your clever object from dict you can
use it with **. And expanding the range of objects
acceptable to ** would be a good idea for Py3k too.

--
Greg



More information about the Python-3000 mailing list