Created
August 14, 2010 21:49
-
-
Save malkarouri/524756 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> class D(object): | |
class E(object): | |
pass | |
def __init__(self): | |
self.e = D.E() # E must be referred to as part of the D scope | |
>>> d=D() | |
>>> d.e | |
<__main__.E object at 0x011D4FF0> # the representation of the nested class E misrepresents its scope |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment