This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients docs@python, rhettinger, ronaldoussoren, serhiy.storchaka, vstinner
Date 2018-12-11.13:27:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1544534848.15.0.788709270274.issue35461@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-12-11 13:27:28serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, ronaldoussoren, vstinner, docs@python
2018-12-11 13:27:28serhiy.storchakasetmessageid: <1544534848.15.0.788709270274.issue35461@psf.upfronthosting.co.za>
2018-12-11 13:27:28serhiy.storchakalinkissue35461 messages
2018-12-11 13:27:28serhiy.storchakacreate