Why use "locals()"

Simon Forman sajmikins at gmail.com
Fri Sep 18 12:55:43 EDT 2009


On Mon, Sep 14, 2009 at 1:12 AM, Sean DiZazzo <half.italian at gmail.com> wrote:
>
> Thanks for your explanation Steven.  I see how it can be valuable, but
> it seems to always break the second rule of Zen.  I don't really want
> to get into the code of debuggers, but I guess I can see how they
> might have no other way to know what local variables have been set.
>
> ~Sean


The zeroth "rule" of zen is "don't take the rules so seriously".
"They're really more like guidelines anyway."

Regards,
~simon



More information about the Python-list mailing list