[New-bugs-announce] [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>:

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>

More information about the New-bugs-announce mailing list