Why use "locals()"

Sean DiZazzo half.italian at gmail.com
Sun Sep 13 23:06:51 EDT 2009


I have never used a call to "locals()" in my code.  Can you show me a
use case where it is valuable and Pythonic?

~Sean



More information about the Python-list mailing list