Skip to content

AF_BLUETOOTH mssing on win32, but available at runtime #5696

Closed

Description

@graingert
C:\Users\IEUser>py
Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.AF_BLUETOOTH
<AddressFamily.AF_BLUETOOTH: 32>
>>>

also AF_UNIX is available in typeshed, but missing on win32 at runtime

Activity

  1. graingert commented on Jun 26, 2021

    @graingert
    ContributorAuthor

    also the contents of socket.AddressFamilly is defined unconditionally:

    AF_BLUETOOTH: int

    however socket.AF_* is only defined in socket.AddressFamily.AF_* is defined and vice versa

  2. added a commit that references this issue on Jun 19, 2022
    b7f8d84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions