Skip to content

AF_DECnet is missing from socket.AddressFamily #127544

Open
@tungol

Description

@tungol

Bug report

Bug description:

This code populates the AddressFamily enum:

IntEnum._convert_(
        'AddressFamily',
        __name__,
        lambda C: C.isupper() and C.startswith('AF_'))

But AF_DECnet isn't all uppercase so it's currently excluded. Do we need the isupper() test? I don't see anything that begins with AF_ in socket other than the existing members of AddressFamily and AF_DECnet.

CPython versions tested on:

3.13

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixes3.13bugs and security fixes3.14new features, bugs and security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions