This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ssc
Recipients ssc
Date 2010-10-07.10:13:46
SpamBayes Score 1.1274199e-07
Marked as misclassified No
Message-id <1286446430.16.0.85312530766.issue10043@psf.upfronthosting.co.za>
In-reply-to
Content
inside a function, I create a local variable by using setattr with the current module as object, as in
  setattr(modules[__name__], 'name', 'value')

if I _later_ in the code set name to None, the attribute becomes unavailable even for code that is executed _before_ setting name to None.

please also see sample file.
History
Date User Action Args
2010-10-07 10:13:50sscsetrecipients: + ssc
2010-10-07 10:13:50sscsetmessageid: <1286446430.16.0.85312530766.issue10043@psf.upfronthosting.co.za>
2010-10-07 10:13:47ssclinkissue10043 messages
2010-10-07 10:13:46ssccreate