[Python-Dev] Re: PEP 292, Simpler String Substitutions
Patrick K. O'Brien
pobrien@orbtech.com
Wed, 19 Jun 2002 23:02:58 -0500
[Guido van Rossum]
>
> > +1 on the allvars() suggestion also.
>
> I have no idea what you are talking about. :-(
François Pinard made the following suggestion and I think something along
the lines of allvars() would be very handy, especially with the html stuff
I've been doing lately:
> This is an interesting idea. However, there are other contexts where the
> concept of a compound dictionary of all globals and locals would
> be useful.
> Maybe we could have some allvars() similar to globals() and locals(),
> and use `... % allvars()' instead of `.sub()'? So this would serve both
> string interpolation and other avenues.
--
Patrick K. O'Brien
Orbtech
-----------------------------------------------
"Your source for Python software development."
-----------------------------------------------
Web: http://www.orbtech.com/web/pobrien/
Blog: http://www.orbtech.com/blog/pobrien/
Wiki: http://www.orbtech.com/wiki/PatrickOBrien
-----------------------------------------------