
May 20, 2008
4:47 p.m.
On Tue, May 20, 2008 at 6:44 PM, Christian Heimes <lists@cheimes.de> wrote:
Benjamin Peterson schrieb:
Speaking of the C-API, I was thinking of introducing a new function called PyObject_SafeHasAttr that functions just like PyObject_HasAttr except it can fail.
How do you define "fail" in this context?
If PyObject_GetAttr raises an exception that is not an AttributeError, it can return -1 to fail. -- Cheers, Benjamin Peterson "There's no place like 127.0.0.1."