Who am I: can a class instance determine its own name?

Tim Peters tim.one at home.com
Wed Mar 14 17:08:07 EST 2001


[Emile van Sebille]
> Has locals changed so that it may be written to reliably?  My
> documentation still warns:
>
> locals ()
> Return a dictionary representing the current local symbol table. Warning:
> The contents of this dictionary should not be modified; changes may not
> affect the values of local variables used by the interpreter.

No, this has not changed.  As the docs say, writing to locals() is not
allowed.

and-more-likely-than-not-will-be-enforced-someday-too-ly y'rs  - tim





More information about the Python-list mailing list