diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2006-06-08 13:54:49 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2006-06-08 13:54:49 (GMT) |
commit | 676725db928dae9f963b3a8389c0a9124e1eacbd (patch) | |
tree | 69e56c6aa31a3998aea76f7aa3aa4ae76f803d3a /Misc | |
parent | 98251f8a2f169d5fd1b6ae0fc9c020d00ec74df5 (diff) | |
download | cpython-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/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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. |