[Python-Dev] PyErr_Warn or PyErr_WarnEx

Benjamin Peterson musiccomposition at gmail.com
Wed Mar 19 04:07:18 CET 2008


Now that we're aggressively adding Py3k warnings to the trunk, I think it's
a good time to get this straightened out. The docs [1] say PyErr_Warn is
deprecated in favor of PyErr_WarnEx. However, I have seen both in recent
checkins. What is preferred?

[1] http://docs.python.org/dev/c-api/exceptions.html

Cheers,
Benjamin Peterson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20080318/4d348e41/attachment.htm 


More information about the Python-Dev mailing list