Modifying/Adding a property to global scope (was: Re: method gets overwritten?!)

Martin v. Löwis martin at v.loewis.de
Fri Mar 14 18:19:06 EST 2003


Alexander Skwar <usenet-posting.zu.askwar at spamgourmet.com> writes:

> How do I add/modify a property in the global scope from within a method
> of a class? 

Use the "global" statement (6.13).

Regards,
Martin




More information about the Python-list mailing list