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, ethan.furman, terry.reedy
Date 2014-05-19.07:55:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400486159.5.0.31970691822.issue19979@psf.upfronthosting.co.za>
In-reply-to
Content
Terry: I meant exactly what I wrote, and not some unrelated examples:

    def f():
        n = 1
        class A: n = n

doesn't work, but the same two lines ("n = 1"; "class A: n = n") work if written at module level instead of in a function.
History
Date User Action Args
2014-05-19 07:55:59arigosetrecipients: + arigo, terry.reedy, ethan.furman
2014-05-19 07:55:59arigosetmessageid: <1400486159.5.0.31970691822.issue19979@psf.upfronthosting.co.za>
2014-05-19 07:55:59arigolinkissue19979 messages
2014-05-19 07:55:59arigocreate