newb: Python Module and Class Scope

johnny rampeters at gmail.com
Thu May 10 10:02:49 EDT 2007


Can a class inside a module, access a method, outside of class, but
inside of the module?

Eg.  Can instance of class a access main, if so how?  What is the
scope of "def main()" interms of class A?

myModule:

class A:
   main()

def main():


thnx.




More information about the Python-list mailing list