summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2006-06-08 13:54:49 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2006-06-08 13:54:49 (GMT)
commit676725db928dae9f963b3a8389c0a9124e1eacbd (patch)
tree69e56c6aa31a3998aea76f7aa3aa4ae76f803d3a /Misc
parent98251f8a2f169d5fd1b6ae0fc9c020d00ec74df5 (diff)
downloadcpython-676725db928dae9f963b3a8389c0a9124e1eacbd.zip
cpython-676725db928dae9f963b3a8389c0a9124e1eacbd.tar.gz
cpython-676725db928dae9f963b3a8389c0a9124e1eacbd.tar.bz2
Add functools.update_wrapper() and functools.wraps() as described in PEP 356
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index d54806a..fea1a6a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -127,6 +127,10 @@ Extension Modules
Library
-------
+- The functions update_wrapper() and wraps() have been added to the functools
+ module. These make it easier to copy relevant metadata from the original
+ function when writing wrapper functions.
+
- The optional ``isprivate`` argument to ``doctest.testmod()``, and the
``doctest.is_private()`` function, both deprecated in 2.4, were removed.