Skip to content

Commit b33c6eb

Browse files
committed
Closes #13951: Add a "faulthandler" reference in the ctypes docs talking about crashes.
1 parent b19ef18 commit b33c6eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/ctypes.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ argument values::
198198
>>>
199199

200200
There are, however, enough ways to crash Python with :mod:`ctypes`, so you
201-
should be careful anyway.
201+
should be careful anyway. The :mod:`faulthandler` module can be helpful in
202+
debugging crashes (e.g. from segmentation faults produced by erroneous C library
203+
calls).
202204

203205
``None``, integers, bytes objects and (unicode) strings are the only native
204206
Python objects that can directly be used as parameters in these function calls.

0 commit comments

Comments
 (0)