On Tue, May 20, 2008 at 6:44 PM, Christian Heimes <lists at 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."
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4