[Tutor] Python 2.7.1 interpreter question

Frank Chang frankchang91 at gmail.com
Wed Dec 29 20:45:25 CET 2010


   I separated my test program into two python files. The first one is
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>
      The second file is automata_test2.py. It imports automata.py. The
pastebin url for automata_test2.py is:
<iframe src="http://pastebin.com/embed_iframe.php?i=A44d2EvV"
style="border:none;width:100%"></iframe>.

      When I use the Python 2.7.1 interpreter I get the following traceback
:

F:\shedskin\shedskin-0.7>python automata_test2.py
Traceback (most recent call last):
  File "automata_test2.py", line 23, in <module>
    list(automata.find_all_matches('nice', 1, m))
AttributeError: 'module' object has no attribute 'find_all_matches'

     Could anyone help me fix this error? I am new to python. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101229/1155c565/attachment.html>


More information about the Tutor mailing list