Re: [Tutor] Python 2.7.1 interpreter

2010-12-30 Thread Frank Chang
I wanted to thank Steven D'Aprano and Allan Gauld for solving my Python 2.7.1 interpreter question in Tutor Digest Vol. 82 Issue 121. Thank you for yor help. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://

[Tutor] Python 2.7.1 interpreter question

2010-12-29 Thread Frank Chang
I separated my test program into two python files. The first one is automata.py. The pastebin url for automata.py is: http://pastebin.com/embed_iframe.php?i=J9MRPibX"; style="border:none;width:100%"> The second file is automata_test2.py. It imports automata.py. The pastebin url for automat

Re: [Tutor] Python 2.7.1 interpreter passing function pointer as function argument and Shedskin 0.7

2010-12-29 Thread Frank Chang
I asked the Shedskin developers about this issue and they are currently adding support for __call__ . They recommend renaming the class Matcher __call__ method ,for example as next, and then explicitly call it on line 148 as lookup_func.next(match). I followed their suggestion and the Sh

[Tutor] Python 2.7.1 interpreter passing function pointer as function argument and Shedskin 0.7

2010-12-28 Thread Frank Chang
Good afternoon. I want to thank everyone who helped me fix the global name 'levinshtein_automata' is not defined error. When I run the Shedskin 0.7 Python to C+++ compiler on the same python program, I receive the error message * Error * automata_test.py:148 : unbound identifier 'lookup_f

[Tutor] Python 2.7.1 interpreter complains about NameError: global name 'levenshtein_automata' is not defined

2010-12-27 Thread Frank Chang
Good morning, I am using Python 2.7.1 on Windows XP Service Pack 3. Here is the program where the Python interpreter complains about NameError: global name 'levenshtein_automata' is not defined. The python 2,7.1 error message is: Traceback (most recent call last): File "automata_test.py"