[Python-checkins] r61071 - python/trunk/Doc/library/thread.rst python/trunk/Doc/library/threading.rst

georg.brandl python-checkins at python.org
Mon Feb 25 21:20:46 CET 2008


Author: georg.brandl
Date: Mon Feb 25 21:20:45 2008
New Revision: 61071
Modified:
 python/trunk/Doc/library/thread.rst
 python/trunk/Doc/library/threading.rst
Log:
Revert r61029.
Modified: python/trunk/Doc/library/thread.rst
==============================================================================
--- python/trunk/Doc/library/thread.rst	(original)
+++ python/trunk/Doc/library/thread.rst	Mon Feb 25 21:20:45 2008
@@ -150,11 +150,6 @@
 exception will be received by an arbitrary thread. (When the :mod:`signal`
 module is available, interrupts always go to the main thread.)
 
-* The import machinery is not thread safe. In general, an import may not
- have the side effect of importing a module, and only the main thread
- should import modules. Imports within or caused by a thread other than
- the main thread isn't safe.
-
 * Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is
 equivalent to calling :func:`exit`.
 
@@ -175,3 +170,4 @@
 * When the main thread exits, it does not do any of its usual cleanup (except
 that :keyword:`try` ... :keyword:`finally` clauses are honored), and the
 standard I/O files are not flushed.
+
Modified: python/trunk/Doc/library/threading.rst
==============================================================================
--- python/trunk/Doc/library/threading.rst	(original)
+++ python/trunk/Doc/library/threading.rst	Mon Feb 25 21:20:45 2008
@@ -562,13 +562,6 @@
 There is a "main thread" object; this corresponds to the initial thread of
 control in the Python program. It is not a daemon thread.
 
-.. warning::
- 
- The import machinery is not thread safe. In general, an import may not
- have the side effect of importing a module, and only the main thread
- should import modules. Imports within or caused by a thread other than
- the main thread isn't safe.
-
 There is the possibility that "dummy thread objects" are created. These are
 thread objects corresponding to "alien threads", which are threads of control
 started outside the threading module, such as directly from C code. Dummy


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /