The interesting thing is that I'm calling a Python callback from a
Python function that was called from C using an exception handler, and
nothing is raised, even if there is an error.
The code I have...
def callbackFunction (suitObject):
print 'The user pressed the button.'
luago ## This should cause a NameError exception to be raised
def PythonGenericCallback (realCallback, param):
suit.inform ('An error occurred during execution of your callback function; perhaps you have a name error or syntax error?')
where realCallback is the callbackFunction object and param is the
suitObject object. When the whole program is run, no exception seems
to be raised (although an exception is raised if callbackFunction is
called directly from the main Python process).
\ \ / / -=Bill Carlson=- | "I wanna decide who
\ \/ / | lives and who dies"
\ / INTERNET: woc8r@Virginia.EDU |
\__/ BITNET: woc8r@VIRGINIA | -Crow T. Robot