[issue21327] socket.type value changes after using settimeout()

Giampaolo Rodola' report at bugs.python.org
Tue Apr 22 14:28:09 CEST 2014


Giampaolo Rodola' added the comment:

Generally speaking I think it's fine to have this behavior only if the socket object is instantiated like this:

>>> s = socket.socket(type=socket.SOCK_STREAM | socket.SOCK_NONBLOCK)
>>> s.type
2049

...but when it comes to using settimeout() I would not expect that to happen (it's not cross platform).
Sounds reasonable?

----------

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


More information about the Python-bugs-list mailing list