mirror of
https://github.com/python/cpython.git
synced 2025-11-12 07:02:33 +00:00
Mention ipaddress improvements.
This commit is contained in:
parent
b9d9ce73d7
commit
0dfce56cd1
1 changed files with 15 additions and 0 deletions
|
|
@ -164,6 +164,14 @@ inspect
|
||||||
subclassing of :class:`~inspect.Signature` easier (contributed
|
subclassing of :class:`~inspect.Signature` easier (contributed
|
||||||
by Yury Selivanov and Eric Snow in :issue:`17373`).
|
by Yury Selivanov and Eric Snow in :issue:`17373`).
|
||||||
|
|
||||||
|
ipaddress
|
||||||
|
---------
|
||||||
|
|
||||||
|
* :class:`ipaddress.IPv4Network` and :class:`ipaddress.IPv6Network` now
|
||||||
|
accept an ``(address, netmask)`` tuple argument, so as to easily construct
|
||||||
|
network objects from existing addresses (contributed by Peter Moody
|
||||||
|
and Antoine Pitrou in :issue:`16531`).
|
||||||
|
|
||||||
signal
|
signal
|
||||||
------
|
------
|
||||||
|
|
||||||
|
|
@ -189,6 +197,13 @@ The following performance enhancements have been added:
|
||||||
data) for large objects. ``calloc()`` is used instead of ``malloc()`` to
|
data) for large objects. ``calloc()`` is used instead of ``malloc()`` to
|
||||||
allocate memory for these objects.
|
allocate memory for these objects.
|
||||||
|
|
||||||
|
* Some operations on :class:`~ipaddress.IPv4Network` and
|
||||||
|
:class:`~ipaddress.IPv6Network` have been massively sped up, such as
|
||||||
|
:meth:`~ipaddress.IPv4Network.subnets`, :meth:`~ipaddress.IPv4Network.supernet`,
|
||||||
|
:func:`~ipaddress.summarize_address_range`, :func:`~ipaddress.collapse_addresses`.
|
||||||
|
The speed up can range from 3x to 15x.
|
||||||
|
(:issue:`21486`, :issue:`21487`, :issue:`20826`)
|
||||||
|
|
||||||
|
|
||||||
Build and C API Changes
|
Build and C API Changes
|
||||||
=======================
|
=======================
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue