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

Martin v. Löwis report at bugs.python.org
Sat Oct 9 20:17:13 CEST 2010


Martin v. Löwis <martin at v.loewis.de> added the comment:

I find it quite clear. "failure" not only means that no item was found, but also that the operation failed, i.e. raised an exception. In general, a NULL pointer returned from a function that returns PyObject* *always* means that there is an exception. There is no need to repeat that every time.

----------
nosy: +loewis

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


More information about the docs mailing list