diff options
author | Raymond Hettinger <python@rcn.com> | 2010-09-05 06:13:47 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-09-05 06:13:47 (GMT) |
commit | 6e8fe9725a61a99728e071f4c53eca83aef45a9a (patch) | |
tree | e6caa037fdf7d83d5435b183c7c4abdbc65116e1 /Doc | |
parent | 4c7c9af542d1dd8b3cb7f6ab58a5a2bda5e13900 (diff) | |
download | cpython-6e8fe9725a61a99728e071f4c53eca83aef45a9a.zip cpython-6e8fe9725a61a99728e071f4c53eca83aef45a9a.tar.gz cpython-6e8fe9725a61a99728e071f4c53eca83aef45a9a.tar.bz2 |
More updates to whatsnew.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.2.rst | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 26bac21..7e77dcc 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -163,6 +163,19 @@ Some smaller changes made to the core Python language are: (Proposed and implemented by Mark Dickinson; :issue:`9337`). +* The :func:`functools.wraps` decorator now adds a :attr:`__wrapped__` attribute + pointing to the original callable function. This allows wrapped functions to + be introspected. It also copies :attr:`__annotations__` if defined. And now + it also gracefully skips over missing attributes such as :attr:`__doc__` which + might not be defined for the wrapped callable. + + (By Nick Coghlan and Terrence Cole; :issue:`9567`, :issue:`3445`, and + :issue:`8814`.) + +* The :mod:`abc` module now supports :func:`abstractclassmethod` and + :func:`staticmethod`. + + (:issue:`5867`) New, Improved, and Deprecated Modules ===================================== @@ -286,11 +299,6 @@ New, Improved, and Deprecated Modules (Contributed by Georg Brandl; :issue:`5675`.) -* Parameters passed to :func:`socket.getaddrinfo()` function can now be - specified as single keyword arguments. - - (Contributed by Giampaolo RodolĂ ; :issue:`8866`.) - * :class:`~poplib.POP3_SSL` class now accepts a *context* parameter, which is a :class:`ssl.SSLContext` object allowing bundling SSL configuration options, certificates and private keys into a single (potentially long-lived) |