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

2009-02-10 Thread python
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 -- http://mail.python.org/mailman/listinfo/python-list

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

2009-02-10 Thread Gabriel Genellina
En Wed, 11 Feb 2009 01:38:49 -0200, pyt...@bdurham.com escribió: 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? Without arguments, vars() returns the current

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

2009-02-10 Thread python
Thank you Gabriel! Malcolm - Original message - From: Gabriel Genellina gagsl-...@yahoo.com.ar To: python-list@python.org Date: Wed, 11 Feb 2009 02:04:47 -0200 Subject: Re: Difference between vars() and locals() and use case for vars() En Wed, 11 Feb 2009 01:38:49 -0200, pyt