summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-02-17 19:05:53 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-02-17 19:05:53 (GMT)
commit4a8f50a85c111e6a84802971bb7f02eaaff466f0 (patch)
treed686b0e74d5f5f74a201d5a40c68953be5516e4c
parent59e87bd2515be932f39167b3a8302d3ba4b9de35 (diff)
downloadcpython-4a8f50a85c111e6a84802971bb7f02eaaff466f0.zip
cpython-4a8f50a85c111e6a84802971bb7f02eaaff466f0.tar.gz
cpython-4a8f50a85c111e6a84802971bb7f02eaaff466f0.tar.bz2
Fix an import and add a citation.
-rw-r--r--Doc/whatsnew/3.2.rst11
1 files changed, 7 insertions, 4 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index d6c9b3f..8f7b03e 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -263,8 +263,8 @@ when currently pending futures are done executing.
A simple of example of :class:`~concurrent.futures.ThreadPoolExecutor` is a
launch of four parallel threads for copying files::
- import threading, shutil
- with threading.ThreadPoolExecutor(max_workers=4) as e:
+ import concurrent.futures, shutil
+ with concurrent.futures.ThreadPoolExecutor(max_workers=4) as e:
e.submit(shutil.copy, 'src1.txt', 'dest1.txt')
e.submit(shutil.copy, 'src2.txt', 'dest2.txt')
e.submit(shutil.copy, 'src3.txt', 'dest3.txt')
@@ -767,8 +767,11 @@ functools
>>> get_phone_number.cache_clear()
- (Contributed by Raymond Hettinger and incorporating design ideas from
- Jim Baker, Miki Tebeka, and Nick Coghlan.)
+ (Contributed by Raymond Hettinger and incorporating design ideas from Jim
+ Baker, Miki Tebeka, and Nick Coghlan; see `recipe 498245
+ <http://code.activestate.com/recipes/498245>`_\, `recipe 577479
+ <http://code.activestate.com/recipes/577479>`_\, :issue:`10586`, and
+ :issue:`10593`.)
* The :func:`functools.wraps` decorator now adds a :attr:`__wrapped__` attribute
pointing to the original callable function. This allows wrapped functions to