yet another recipe on string interpolation

Michele Simionato michele.simionato at gmail.com
Mon Nov 8 04:06:05 EST 2004


Peter Otten <__peter__ at web.de> wrote in message news:<cmdpe5$uem$02$1 at news.t-online.com>...
> As of 2.4b2, the modulo operator is not (not yet, or no longer?) defined, so
> I had to use substitute() instead.

I have downloaded Python 2.4b2 today and looked at the source code for
the Template class. There is no __mod__ method, in contraddiction with 
PEP 292. Is there somebody who knows what happened and the rationale
for the change? Should PEP 292 be updated?

         Michele Simionato



More information about the Python-list mailing list