Is there a way to share member variables between a class and a nested class ?
for example
class Base(object):
  class __Internal(object):
    def __init__(self, parent):
        self.__parent = parent
        self.__parent.__private_method()
#
def __init__(self):
    self.__internal = Base.__Internal(self)
    return
def __private_method(self):
    print "hurray"
    return
if name == "main": b = Base()`
is there a way for the __Internal class to access members of the parent class ?
iam looking for private members like parent.__vars/__methods .
I have edited the code to better explain this. running this code throws
AttributeError: 'Base' object has no attribute '_Internal__private_method'
 
     
     
    