[Python-Dev] Catching exceptions and convert them to warnings in C level code (was: Re: Pronouncement needed in issue9675) (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Sat Oct 2 22:27:56 CEST 2010
- Previous message: [Python-Dev] Catching exceptions and convert them to warnings in C level code (was: Re: Pronouncement needed in issue9675)
- Next message: [Python-Dev] [Pythonmac-SIG] sad state of OS X Python testing...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, 02 Oct 2010 22:14:28 +0200 Jesus Cea <jcea at jcea.es> wrote:
My idea is to convert the CObject exception in bsddb to print a warning like "CObject creation failed. The bsddb.cAPI will be not available. Reason is: XXXX". Is there a "canonical way" of doing this?. Sorry if the answer is trivial...
Try PyErr_WriteUnraisable().
Regards
Antoine.
- Previous message: [Python-Dev] Catching exceptions and convert them to warnings in C level code (was: Re: Pronouncement needed in issue9675)
- Next message: [Python-Dev] [Pythonmac-SIG] sad state of OS X Python testing...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]