Skip to content

ipaddress.IPv6Network should not have a broadcast_address property #111442

@rpigott

Description

@rpigott

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions