[issue37152] Add AF_LOCAL alias for AF_UNIX
Christian Heimes
report at bugs.python.org
Tue Jun 4 16:08:49 EDT 2019
Christian Heimes <lists at cheimes.de> added the comment:
The socket type is known as AF_UNIX, AF_LOCAL, Unix domain socket, and IPC (inter process communication) socket. The man page unix(7) http://man7.org/linux/man-pages/man7/unix.7.html uses three of those four terms to explain the socket type:
The AF_UNIX (also known as AF_LOCAL) socket family is used to
communicate between processes on the same machine efficiently.
Traditionally, UNIX domain sockets can be [...]
The strace command also uses the name AF_UNIX and not AF_LOCAL. HTTP over AF_UNIX often uses http+unix:// or unix:// to refer to a socket file.
I'm -1 to add the alias. It just adds to the confusion. It's also against the Zen of Python: "There should be one-- and preferably only one --obvious way to do it."
----------
nosy: +christian.heimes
versions: +Python 3.9 -Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37152>
_______________________________________
More information about the Python-bugs-list
mailing list