[Python-Dev] NULL allowed in PyErr_SetString and friends? (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Mon Aug 12 14:10:30 CEST 2013


Hello,

It seems NULL is allowed as the first argument of PyErr_Format, PyErr_SetString and PyErr_SetObject. Moreover, it means "clear the error indicator". However, this is not mentioned in the docs. I was wondering if we should officialize this behaviour or change it.

Regards

Antoine.



More information about the Python-Dev mailing list