Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13)

Side by Side Diff: Doc/library/faulthandler.rst

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/email.util.rst ('k') | Doc/library/ftplib.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`faulthandler` --- Dump the Python traceback 1 :mod:`faulthandler` --- Dump the Python traceback
2 ================================================= 2 =================================================
3 3
4 .. module:: faulthandler 4 .. module:: faulthandler
5 :synopsis: Dump the Python traceback. 5 :synopsis: Dump the Python traceback.
6 6
7 This module contains functions to dump Python tracebacks explicitly, on a fault, 7 This module contains functions to dump Python tracebacks explicitly, on a fault,
8 after a timeout, or on a user signal. Call :func:`faulthandler.enable` to 8 after a timeout, or on a user signal. Call :func:`faulthandler.enable` to
9 install fault handlers for the :const:`SIGSEGV`, :const:`SIGFPE`, 9 install fault handlers for the :const:`SIGSEGV`, :const:`SIGFPE`,
10 :const:`SIGABRT`, :const:`SIGBUS`, and :const:`SIGILL` signals. You can also 10 :const:`SIGABRT`, :const:`SIGBUS`, and :const:`SIGILL` signals. You can also
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 available if Python is compiled with threads disabled. 85 available if Python is compiled with threads disabled.
86 86
87 .. function:: cancel_dump_tracebacks_later() 87 .. function:: cancel_dump_tracebacks_later()
88 88
89 Cancel the last call to :func:`dump_tracebacks_later`. 89 Cancel the last call to :func:`dump_tracebacks_later`.
90 90
91 91
92 Dump the traceback on a user signal 92 Dump the traceback on a user signal
93 ----------------------------------- 93 -----------------------------------
94 94
95 .. function:: register(signum, file=sys.stderr, all_threads=True, chain=False) 95 .. function:: register(signum, file=sys.stderr, all_threads=True)
96 96
97 Register a user signal: install a handler for the *signum* signal to dump 97 Register a user signal: install a handler for the *signum* signal to dump
98 the traceback of all threads, or of the current thread if *all_threads* is 98 the traceback of all threads, or of the current thread if *all_threads* is
99 ``False``, into *file*. Call the previous handler if chain is ``True``. 99 ``False``, into *file*.
100 100
101 Not available on Windows. 101 Not available on Windows.
102 102
103 .. function:: unregister(signum) 103 .. function:: unregister(signum)
104 104
105 Unregister a user signal: uninstall the handler of the *signum* signal 105 Unregister a user signal: uninstall the handler of the *signum* signal
106 installed by :func:`register`. Return ``True`` if the signal was registered, 106 installed by :func:`register`. Return ``True`` if the signal was registered,
107 ``False`` otherwise. 107 ``False`` otherwise.
108 108
109 Not available on Windows. 109 Not available on Windows.
(...skipping 17 matching lines...) Expand all
127 $ python -q -X faulthandler 127 $ python -q -X faulthandler
128 >>> import ctypes 128 >>> import ctypes
129 >>> ctypes.string_at(0) 129 >>> ctypes.string_at(0)
130 Fatal Python error: Segmentation fault 130 Fatal Python error: Segmentation fault
131 131
132 Current thread 0x00007fb899f39700: 132 Current thread 0x00007fb899f39700:
133 File "/home/python/cpython/Lib/ctypes/__init__.py", line 486 in string_at 133 File "/home/python/cpython/Lib/ctypes/__init__.py", line 486 in string_at
134 File "<stdin>", line 1 in <module> 134 File "<stdin>", line 1 in <module>
135 Segmentation fault 135 Segmentation fault
136 136
OLDNEW
« no previous file with comments | « Doc/library/email.util.rst ('k') | Doc/library/ftplib.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+