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

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

Issue 18758: Fix internal references in the documentation
Patch Set: Created 6 years, 5 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/telnetlib.rst ('k') | Doc/library/time.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:`_thread` --- Low-level threading API 1 :mod:`_thread` --- Low-level threading API
2 ========================================== 2 ==========================================
3 3
4 .. module:: _thread 4 .. module:: _thread
5 :synopsis: Low-level threading API. 5 :synopsis: Low-level threading API.
6 6
7 7
8 .. index:: 8 .. index::
9 single: light-weight processes 9 single: light-weight processes
10 single: processes, light-weight 10 single: processes, light-weight
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 .. index:: module: signal 170 .. index:: module: signal
171 171
172 * Threads interact strangely with interrupts: the :exc:`KeyboardInterrupt` 172 * Threads interact strangely with interrupts: the :exc:`KeyboardInterrupt`
173 exception will be received by an arbitrary thread. (When the :mod:`signal` 173 exception will be received by an arbitrary thread. (When the :mod:`signal`
174 module is available, interrupts always go to the main thread.) 174 module is available, interrupts always go to the main thread.)
175 175
176 * Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is 176 * Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is
177 equivalent to calling :func:`_thread.exit`. 177 equivalent to calling :func:`_thread.exit`.
178 178
179 * Not all built-in functions that may block waiting for I/O allow other threads 179 * Not all built-in functions that may block waiting for I/O allow other threads
180 to run. (The most popular ones (:func:`time.sleep`, :meth:`file.read`, 180 to run. (The most popular ones (:func:`time.sleep`, :meth:`io.FileIO.read`,
181 :func:`select.select`) work as expected.) 181 :func:`select.select`) work as expected.)
182 182
183 * It is not possible to interrupt the :meth:`acquire` method on a lock --- the 183 * It is not possible to interrupt the :meth:`acquire` method on a lock --- the
184 :exc:`KeyboardInterrupt` exception will happen after the lock has been acquire d. 184 :exc:`KeyboardInterrupt` exception will happen after the lock has been acquire d.
185 185
186 * When the main thread exits, it is system defined whether the other threads 186 * When the main thread exits, it is system defined whether the other threads
187 survive. On most systems, they are killed without executing 187 survive. On most systems, they are killed without executing
188 :keyword:`try` ... :keyword:`finally` clauses or executing object 188 :keyword:`try` ... :keyword:`finally` clauses or executing object
189 destructors. 189 destructors.
190 190
191 * When the main thread exits, it does not do any of its usual cleanup (except 191 * When the main thread exits, it does not do any of its usual cleanup (except
192 that :keyword:`try` ... :keyword:`finally` clauses are honored), and the 192 that :keyword:`try` ... :keyword:`finally` clauses are honored), and the
193 standard I/O files are not flushed. 193 standard I/O files are not flushed.
194 194
OLDNEW
« no previous file with comments | « Doc/library/telnetlib.rst ('k') | Doc/library/time.rst » ('j') | no next file with comments »

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