Re: [Python-Dev] PyErr_Warn or PyErr_WarnEx

2008-03-18 Thread Neal Norwitz
On Tue, Mar 18, 2008 at 10:07 PM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > 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

[Python-Dev] PyErr_Warn or PyErr_WarnEx

2008-03-18 Thread Benjamin Peterson
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