[New-bugs-announce] [issue8270] Should socket.PF_PACKET be removed, in favor of socket.AF_PACKET?

Denilson Figueiredo de Sá report at bugs.python.org
Wed Mar 31 02:06:38 CEST 2010


New submission from Denilson Figueiredo de Sá <denilsonsa at gmail.com>:

If you look at socket module, there are around 29 AF_* constants (like AF_INET).

On the other hand, there is only one PF_ constant: PF_PACKET. This constant is also defined as AF_PACKET.

Following the "There should be one-- and preferably only one --obvious way to do it." advice, Python 3 removed the <> operator.  I know it's a bit late to change things in Python 3, but should socket.PF_PACKET be removed, in favor of socket.AF_PACKET? (of course, before being removed, it would be left as deprecated for quite some time)

----------
messages: 101966
nosy: denilsonsa
severity: normal
status: open
title: Should socket.PF_PACKET be removed, in favor of socket.AF_PACKET?

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8270>
_______________________________________


More information about the New-bugs-announce mailing list