Message331620
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. |
|
Date |
User |
Action |
Args |
2018-12-11 13:27:28 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, ronaldoussoren, vstinner, docs@python |
2018-12-11 13:27:28 | serhiy.storchaka | set | messageid: <1544534848.15.0.788709270274.issue35461@psf.upfronthosting.co.za> |
2018-12-11 13:27:28 | serhiy.storchaka | link | issue35461 messages |
2018-12-11 13:27:28 | serhiy.storchaka | create | |
|