]> granicus.if.org Git - python/commitdiff
Closes #13951: Add a "faulthandler" reference in the ctypes docs talking about crashes.
authorGeorg Brandl <georg@python.org>
Sun, 6 Oct 2013 08:51:01 +0000 (10:51 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 6 Oct 2013 08:51:01 +0000 (10:51 +0200)
Doc/library/ctypes.rst

index 33ff12bcfc04a3c4c58721f19d0fb70cc02c59b9..a6c918deb4ec52491ab7d39e42093ed4ed243863 100644 (file)
@@ -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.