Calling a variable inside a function of another class

Yigit Turgut y.turgut at gmail.com
Sat Jan 7 10:00:57 EST 2012


class test(test1):

    def __init__(self, device):
      .
      .
      .
    def _something(self, x=1)
     self.dt = data


if __name__ == "__main__":
     test.something.dt ???

I am trying to call a variable located in a function of a class from
main but couldn't succeed.Any ideas?



More information about the Python-list mailing list