[docs] [issue35461] Document C API functions which swallow exceptions

Serhiy Storchaka report at bugs.python.org
Tue Dec 11 08:27:28 EST 2018


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

C API functions like PyDict_GetItem() and PyObject_HasAttr() suppresses all errors that may occur, including MemoryError and KeyboardInterrupt. They can return incorrect result when the memory is exhausted or the user presses Ctrl-C. The proposed PR documents such functions and suggests the C API which do not swallow unrelated exceptions.

Previous attempt to document this (for PyDict_GetItem() only) was in issue20615.

----------
assignee: docs at python
components: Documentation
messages: 331620
nosy: docs at python, rhettinger, ronaldoussoren, serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: Document C API functions which swallow exceptions
type: enhancement
versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35461>
_______________________________________


More information about the docs mailing list