"Pete" wrote
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.
Yes it does and Steven has answered that so maybe you are clear now.
But just to clarify, when you set a callback there is n
> By the way, don't be tempted to write a bare except clause:
>
> try:
> ...
> except:
> ...
>
> There are very few reasons for such a thing, as they are too broad and
> catch too many things, masking errors, preventing user keyboard
> interrupts, etc. Avoid them.
Doh! That is what I did :)
On Fri, 13 Aug 2010 11:56:31 am Pete wrote:
> 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 do