Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e8fe97

Browse files
committed
More updates to whatsnew.
1 parent 4c7c9af commit 6e8fe97

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

Doc/whatsnew/3.2.rst

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,19 @@ Some smaller changes made to the core Python language are:
163163

164164
(Proposed and implemented by Mark Dickinson; :issue:`9337`).
165165

166+
* The :func:`functools.wraps` decorator now adds a :attr:`__wrapped__` attribute
167+
pointing to the original callable function. This allows wrapped functions to
168+
be introspected. It also copies :attr:`__annotations__` if defined. And now
169+
it also gracefully skips over missing attributes such as :attr:`__doc__` which
170+
might not be defined for the wrapped callable.
171+
172+
(By Nick Coghlan and Terrence Cole; :issue:`9567`, :issue:`3445`, and
173+
:issue:`8814`.)
174+
175+
* The :mod:`abc` module now supports :func:`abstractclassmethod` and
176+
:func:`staticmethod`.
177+
178+
(:issue:`5867`)
166179

167180
New, Improved, and Deprecated Modules
168181
=====================================
@@ -286,11 +299,6 @@ New, Improved, and Deprecated Modules
286299

287300
(Contributed by Georg Brandl; :issue:`5675`.)
288301

289-
* Parameters passed to :func:`socket.getaddrinfo()` function can now be
290-
specified as single keyword arguments.
291-
292-
(Contributed by Giampaolo Rodolà; :issue:`8866`.)
293-
294302
* :class:`~poplib.POP3_SSL` class now accepts a *context* parameter, which is a
295303
:class:`ssl.SSLContext` object allowing bundling SSL configuration options,
296304
certificates and private keys into a single (potentially long-lived)

0 commit comments

Comments
 (0)