I just realized I can pass the object itself:
like
p=__import__("printit")
p.pr(self)
in printit.py
-------------
def pr(self):
print self.var
-------------------
--
http://mail.python.org/mailman/listinfo/python-list
I just realized I can pass the object itself:
like
p=__import__("printit")
p.pr(self)
in printit.py
-------------
def pr(self):
print self.var
-------------------
--
http://mail.python.org/mailman/listinfo/python-list