Hi,

I've been writing some code which uses callbacks. I have not used callbacks 
much before, but it does not seem too difficult so far.

One thing though - I noticed that when an exception is raised in the callback 
function, that exception doesn't actually "show up" in the calling program.

Two questions:

1) Theoretically - why is this? I guess I've seen callback functions a little 
like subroutines, therefore it seems intuitive that an exception would be 
propagated up to the calling routine.

2) How can you catch an exception in the callback function?

The code is not easily isolated, but can post if necessary.

thanks again,

Pete
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to