Hi Ginnie,
I am OK with all your responses except 1. See below.
On 07/23/10 02:04 PM, Ginnie Wray wrote:
line 254: This line will get executed even if there's no error.
According
to Python document, it will cause a fatal error.
Sanjay, Keith and I discussed this and decided for set_logger_class
and get_logger to use PyErr_Print. For the others I use PyErr_Clear.
I understand for the case where this is an error we do "PyErr_Print()",
such as line 245.
However, line 254 is executed regardless there's an error or not.
According to:
http://docs.python.org/release/2.5.2/api/exceptionHandling.html
-------------------------------------------
void *PyErr_Print*( )
Print a standard traceback to |sys.stderr| and clear the error
indicator. Call this function only when the error indicator is set.
(Otherwise it will cause a fatal error!)
-------------------------------------------
Thanks,
--Karen
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss