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 arigo
Recipients arigo
Date 2016-12-06.11:59:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481025565.28.0.169524902167.issue28884@psf.upfronthosting.co.za>
In-reply-to
Content
(B9) CPython 3.5.2: this ``nonlocal`` seems not to have a reasonable
  effect (note that if we use a different name instead of ``__class__``,
  this example correctly complain that there is no binding in the outer
  scope of ``Y``)::

    class Y:
        class X:
            nonlocal __class__
            __class__ = 42
        print(locals()['__class__'])     # 42
        print(__class__)                 # but this is a NameError
History
Date User Action Args
2016-12-06 11:59:25arigosetrecipients: + arigo
2016-12-06 11:59:25arigosetmessageid: <1481025565.28.0.169524902167.issue28884@psf.upfronthosting.co.za>
2016-12-06 11:59:25arigolinkissue28884 messages
2016-12-06 11:59:25arigocreate