Should I always call PyErr_Clear() when an exception occurs?

Nick Coghlan ncoghlan at iinet.net.au
Tue Dec 21 06:02:24 EST 2004


Tim Peters wrote:
> Note that the Python implementation itself uses the Python C API
> heavily, in its C files.  You can study those to get many examples of
> best practice.  It will help to remember that coding in C isn't
> supposed to fun <0.9 wink>.

That's right. Coding in C is supposed to remind you why you love coding in Python ;)

Although coding in C when you have the Python API to lean on is a hell of a lot 
better than just coding in C. . .

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at email.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net



More information about the Python-list mailing list