This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author giampaolo.rodola
Recipients giampaolo.rodola
Date 2014-01-24.22:48:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390603701.84.0.039670998795.issue20386@psf.upfronthosting.co.za>
In-reply-to
Content
Python 2.7

>>> import socket
>>> socket.SocketType
<class 'socket._socketobject'>
>>> s = socket.socket()
>>> isinstance(s, socket.SocketType)
True
>>> 


Python 3.4

>>> socket.SocketType
<enum 'SocketType'>
>>> s = socket.socket()
>>> isinstance(s, socket.SocketType)
False
>>> 

SocketType was already present and documented in Python 2 so it should be preserved: http://docs.python.org/2/library/socket.html#socket.SocketType

Also, socket.SocketType and socket.AddressFamily names suggest they should be public but they're not mentioned in the doc.  I think they should just be private though (frankly I fail to understand why a set of constants such as AF_* and SOCK_* should be grouped in a common "container" in the first place).
History
Date User Action Args
2014-01-24 22:48:21giampaolo.rodolasetrecipients: + giampaolo.rodola
2014-01-24 22:48:21giampaolo.rodolasetmessageid: <1390603701.84.0.039670998795.issue20386@psf.upfronthosting.co.za>
2014-01-24 22:48:21giampaolo.rodolalinkissue20386 messages
2014-01-24 22:48:21giampaolo.rodolacreate