Message331620
| 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. |
|