"Frank Chang" <frankchan...@gmail.com> wrote
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_func'. lookup_func
is a
python function pointer passed as an argument to a python function.
I have marked lines 148,161,172 and 174 in the python program
automata_test.py shown below. The shedskin tutorial says the latest
version
of the Shedskin 0.7 Python to C++ compiler does not support
overloading
__iter__ and __call__.
These sound like issues with shedskin rather than Python, you
will probably get better support on their forum/newsggroup/list.
You may also find other compilers deal with your particular needs
better - cython for example.
But finally, remember that Python is not C++. If you really
need C++ use C++. The compilers are clever and can save a lot of
effort, but Python is primarily an dynamic interpreted language and
a lot of its more advanced idioms do not translate easily to
statically
compiled code.
HTH,
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor