[New-bugs-announce] [issue37152] Add AF_LOCAL alias for AF_UNIX

carlo report at bugs.python.org
Tue Jun 4 11:05:38 EDT 2019


New submission from carlo <carlo.revelli at berkeley.edu>:

both mean the same thing and are used to reference local socket files

if you do a `man socket`

one of the lines says

PF_LOCAL        Host-internal protocols, formerly called PF_UNIX,

(AF and PF mean the same thing here, but importantly it shows that PF_UNIX has been depreciated)

this change gives users the option to type socket.AF_LOCAL as well as socket.AF_UNIX when specifying the address family for the socket.

this is my first issue so lmk if there is anything I'm missing )

----------
components: Library (Lib)
messages: 344585
nosy: frosty00
priority: normal
severity: normal
status: open
title: Add AF_LOCAL alias for AF_UNIX
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37152>
_______________________________________


More information about the New-bugs-announce mailing list