You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AF_BLUETOOTH mssing on win32, but available at runtime #5696
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
graingert commentedon Jun 26, 2021
also the contents of socket.AddressFamilly is defined unconditionally:
typeshed/stdlib/socket.pyi
Line 398 in 50f5858
however socket.AF_* is only defined in socket.AddressFamily.AF_* is defined and vice versa
socket: consistency between constants and enums (#8099)