From: Georg Brandl Date: Sun, 6 Oct 2013 08:51:01 +0000 (+0200) Subject: Closes #13951: Add a "faulthandler" reference in the ctypes docs talking about crashes. X-Git-Tag: v3.4.0a4~254^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b33c6eb6400c8ecdb33a2a0f0f81f9d2c282cff5;p=python Closes #13951: Add a "faulthandler" reference in the ctypes docs talking about crashes. --- diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 33ff12bcfc..a6c918deb4 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -198,7 +198,9 @@ argument values:: >>> There are, however, enough ways to crash Python with :mod:`ctypes`, so you -should be careful anyway. +should be careful anyway. The :mod:`faulthandler` module can be helpful in +debugging crashes (e.g. from segmentation faults produced by erroneous C library +calls). ``None``, integers, bytes objects and (unicode) strings are the only native Python objects that can directly be used as parameters in these function calls.