AF_DECnet is missing from socket.AddressFamily · Issue #127544 · python/cpython

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