locals() and dictionaries

Alex Martelli aleaxit at yahoo.com
Wed Feb 1 21:47:16 EST 2006


JerryB <grblanco at gmail.com> wrote:
   ...
> is it possible to access the individual members of a dictionary using %
> locals() when creating a string?

Not by using the built-in locals(); you'd have to override locals to
mean someting different (not recommended).


Alex



More information about the Python-list mailing list