bpo-37759: More updates to Whatsnew 3.8#16854
Conversation
Other minor fixes as well. Also, dedup the __reduce__ entry.
|
Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
|
GH-16867 is a backport of this pull request to the 3.8 branch. |
* math.perm() and math.comb() * math.isqrt() * Add singledispatchmethod() * itertools.accumulate() * Optional headers for xmlrpc.client.ServerProxy * IDLE non-BMP characters * import collections.abc directly * @coroutine is deprecated * pprint.pp() * New options for object.__reduce__() * DictReader no longer returns OrderedDicts * "force" option for logging.basicConfig() * Fix spelling * cProfile context manager * Various markup/grammar fixes from Kyle Stanley. Other minor fixes as well. Also, dedup the __reduce__ entry. * Fix markup * Fix grammar nits found by MS Word (cherry picked from commit c93883c) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Great work! Thank you, Raymond!
But I think there are some issues with using the tilde.
| element is a callable with a ``(obj, state)`` signature. This allows the | ||
| direct control over the state-updating behavior of a specific object. If | ||
| not *None*, this callable will have priority over the object's | ||
| :meth:`~__setstate__` method. |
There was a problem hiding this comment.
~ is not needed here. It could be :meth:`~object.__setstate__`, but maybe :meth:`__setstate__` is enough.
There was a problem hiding this comment.
:meth:`__setstate__`
IIRC, the above does not correctly generate an inline link. This applies to the other dunder methods and attributes inherited from object as well, it has to be:
:meth:`object.__setstate__`
Usually, I've used:
:meth:`~object.__setstate__`
since only the __setstate__ part is relevant for the context of the readers.
| ------- | ||
|
|
||
| Added a *force* keyword argument to :func:`logging.basicConfig()` | ||
| When set to *True*, any existing handlers attached |
There was a problem hiding this comment.
It is usually written as ``True``.
|
|
||
| Added :attr:`ssl.SSLContext.post_handshake_auth` to enable and | ||
| :meth:`ssl.SSLSocket.verify_client_post_handshake` to initiate TLS 1.3 | ||
| Added :attr:`~ssl.SSLContext.post_handshake_auth` to enable and |
There was a problem hiding this comment.
The module is known from the context, but it is not clear what classes the attribute and the method belong to. Maybe you meant :attr:`SSLContext.post_handshake_auth <ssl.SSLContext.post_handshake_auth>`?
There are similar issues with some other uses of the tilde. It lefts only the last component.
* math.perm() and math.comb() * math.isqrt() * Add singledispatchmethod() * itertools.accumulate() * Optional headers for xmlrpc.client.ServerProxy * IDLE non-BMP characters * import collections.abc directly * @coroutine is deprecated * pprint.pp() * New options for object.__reduce__() * DictReader no longer returns OrderedDicts * "force" option for logging.basicConfig() * Fix spelling * cProfile context manager * Various markup/grammar fixes from Kyle Stanley. Other minor fixes as well. Also, dedup the __reduce__ entry. * Fix markup * Fix grammar nits found by MS Word
* math.perm() and math.comb() * math.isqrt() * Add singledispatchmethod() * itertools.accumulate() * Optional headers for xmlrpc.client.ServerProxy * IDLE non-BMP characters * import collections.abc directly * @coroutine is deprecated * pprint.pp() * New options for object.__reduce__() * DictReader no longer returns OrderedDicts * "force" option for logging.basicConfig() * Fix spelling * cProfile context manager * Various markup/grammar fixes from Kyle Stanley. Other minor fixes as well. Also, dedup the __reduce__ entry. * Fix markup * Fix grammar nits found by MS Word
https://bugs.python.org/issue37759