yet another recipe on string interpolation

Michele Simionato michele.simionato at gmail.com
Thu Nov 4 23:31:14 EST 2004


Peter Hansen <peter at engcorp.com> wrote in message news:<NrqdnSXjEc7V3xfcRVn-uw at powergate.ca>...
> My only comment is about *your* comment, above.  I would
> have called the behaviour described "merge from left".
> Maybe best just to cut out that part of the comment, and
> leave it as "merge where rightmost dictionary has precedence".

Ok.

> Cute recipe though. :-)

Thanks ;-)

I was asking for comments about the performance of this approach 
and/or design choices: for instance, in the case an explicit
dictionary is passed, it could make sense to use it for interpolation,
without merging it with the locals and globals. I could add a default
argument to set this behavior, but I am not sure if this is worthwhile ...

 Michele Simionato



More information about the Python-list mailing list