[docs] [issue10057] Unclear if exception should be set

Jan Kratochvil report at bugs.python.org
Sat Oct 9 20:02:00 CEST 2010


New submission from Jan Kratochvil <jan.kratochvil at redhat.com>:

http://docs.python.org/py3k/c-api/object.html
PyObject_GetItem
Return element [...] or NULL on failure.

Found element => return its pointer.
Found no element => return NULL (with no exception set).

But it is unclear whether the function can also:
Error happened => return NULL with an exception set.

It affects multiple versions of the doc, did not check which all.

----------
assignee: docs at python
components: Documentation
messages: 118281
nosy: docs at python, jankratochvil
priority: normal
severity: normal
status: open
title: Unclear if exception should be set
versions: Python 2.7, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10057>
_______________________________________


More information about the docs mailing list