"Frank Chang" <frankchan...@gmail.com> wrote
automata.py. The pastebin url for automata.py is: <iframe src="http://pastebin.com/embed_iframe.php?i=J9MRPibX" style="border:none;width:100%"></iframe>
list(automata.find_all_matches('nice', 1, m)) AttributeError: 'module' object has no attribute 'find_all_matches'
find_all_matches() is a method of a class. Therefore you need to call it via an instance of that class. You need to instantiate the class using the module name but after that the object will be local:
myObj = module.myclass() myObj.myMethod() HTH, _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor