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 acucci
Recipients acucci, benjamin.peterson, brett.cannon, georg.brandl, ncoghlan, serhiy.storchaka, sirkonst, yselivanov
Date 2015-12-29.12:58:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1451393907.9.0.488124311842.issue25973@psf.upfronthosting.co.za>
In-reply-to
Content
I don't think the problem is about the underscores, since this work...

class Foo:
    def f1(self):
        __obj = object()
        def f2():
            nonlocal __obj
            __obj = []
        f2()
        return isinstance(__obj, list)
        
f = Foo()
print(f.f1())
History
Date User Action Args
2015-12-29 12:58:27acuccisetrecipients: + acucci, brett.cannon, georg.brandl, ncoghlan, benjamin.peterson, serhiy.storchaka, yselivanov, sirkonst
2015-12-29 12:58:27acuccisetmessageid: <1451393907.9.0.488124311842.issue25973@psf.upfronthosting.co.za>
2015-12-29 12:58:27acuccilinkissue25973 messages
2015-12-29 12:58:27acuccicreate