[Python-checkins] r66939 - python/trunk/Doc/library/multiprocessing.rst
georg.brandl
python-checkins at python.org
Thu Oct 16 23:36:39 CEST 2008
Author: georg.brandl
Date: Thu Oct 16 23:36:39 2008
New Revision: 66939
Log:
part of #4012: kill off old name "processing".
Modified:
python/trunk/Doc/library/multiprocessing.rst
Modified: python/trunk/Doc/library/multiprocessing.rst
==============================================================================
--- python/trunk/Doc/library/multiprocessing.rst (original)
+++ python/trunk/Doc/library/multiprocessing.rst Thu Oct 16 23:36:39 2008
@@ -378,8 +378,8 @@
Example usage of some of the methods of :class:`Process`::
- >>> import processing, time, signal
- >>> p = processing.Process(target=time.sleep, args=(1000,))
+ >>> import multiprocessing, time, signal
+ >>> p = multiprocessing.Process(target=time.sleep, args=(1000,))
>>> print p, p.is_alive()
<Process(Process-1, initial)> False
>>> p.start()
@@ -1781,12 +1781,12 @@
Below is an example session with logging turned on::
- >>> import processing, logging
- >>> logger = processing.getLogger()
+ >>> import multiprocessing, logging
+ >>> logger = multiprocessing.getLogger()
>>> logger.setLevel(logging.INFO)
>>> logger.warning('doomed')
[WARNING/MainProcess] doomed
- >>> m = processing.Manager()
+ >>> m = multiprocessing.Manager()
[INFO/SyncManager-1] child process calling self.run()
[INFO/SyncManager-1] manager bound to '\\\\.\\pipe\\pyc-2776-0-lj0tfa'
>>> del m
More information about the Python-checkins
mailing list