A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-May/079639.html below:

[Python-Dev] disappearing exceptions

[Python-Dev] disappearing exceptions [Python-Dev] disappearing exceptionsBenjamin Peterson musiccomposition at gmail.com
Wed May 21 01:47:39 CEST 2008
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."
More information about the Python-Dev mailing list

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