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 Andreas Hofmeister
Recipients Andreas Hofmeister, mark.dickinson
Date 2010-06-22.05:11:15
SpamBayes Score 0.0011632136
Marked as misclassified No
Message-id <1277183478.15.0.173018945896.issue9049@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you for your assistance. I apologize for not examining the reference manual closely. 
Is there any way to produce the desired behavior? I currently work around the local name binding like this:

def x():
     a = [False]
     def y():
         print a[0]
         a[0] = True
     return y

However, using a list here seems awkward.
Thank you for your attention.
History
Date User Action Args
2010-06-22 05:11:18Andreas Hofmeistersetrecipients: + Andreas Hofmeister, mark.dickinson
2010-06-22 05:11:18Andreas Hofmeistersetmessageid: <1277183478.15.0.173018945896.issue9049@psf.upfronthosting.co.za>
2010-06-22 05:11:16Andreas Hofmeisterlinkissue9049 messages
2010-06-22 05:11:15Andreas Hofmeistercreate