Difference between vars() and locals() and use case for vars()

python at bdurham.com python at bdurham.com
Wed Feb 11 04:38:49 CET 2009


Can someone explain the difference between vars() and locals()?
I'm also trying to figure out what the use case is for vars(),
eg. when does it make sense to use vars() in a program?
Thank you,
Malcolm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090210/9482293b/attachment.html>


More information about the Python-list mailing list