Generating exceptions from C
Jacob Kroon
jacob.kroon at gmail.com
Sat Mar 18 10:28:37 EST 2006
Just wrote:
>>Does the comments above make sense?
>>
>>
>
>Not quite: when raising an exception, an instance of the exception class
>_is_ created. Just like this:
>
> raise SomeException(msg)
>
>With the old (deprecated) spelling the instantiation is done implicitly:
>
> raise SomeException, msg
>
>
Ah ok, so it is created, automatically, but I guess I never have to
handle the instance in the C code.
Thanks
--Jacob
More information about the Python-list
mailing list