-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Open
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
ipv6 does not have broadcast addresses. The below result is nonsense since the returned addr is not a broadcast address, but one of the reserved anycast addresses on the network.
import ipaddress
ipaddress.ip_network("2600::/64").broadcast_address # IPv6Address('2600::ffff:ffff:ffff:ffff')
CPython versions tested on:
3.11
Operating systems tested on:
Linux
Linked PRs
- gh-111442: Use first_address and last_address internally, and refer to them in IPv4 and IPv6 networks as network_address, subnet_router_anycast or broadcast_address only if appropriate to the address family. #132420
- gh-111442: Correct names for all 0's and all 1's hosts in Address objects, and deprecate incorrect names. #132421
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error