socket.shutdown: how should be socket.SHUT_*
May 26, 2016
8:43 p.m.
Regarding this page: https://docs.python.org/2/library/socket.html#socket.create_connection In the description for socket.shutdown, the values for "how" are incorrectly listed as SHUT_RD, SHUT_WR and SHUT_RDWR They should be: socket.SHUT_RD, socket.SHUT_WR and socket.SHUT_RDWR Thanks, don.. Error when using SHUT_WR instead of socket.SHUT_WR: Traceback (most recent call last): File "p.py", line 21, in <module> cli.shutdown(SHUT_WR) NameError: name 'SHUT_WR' is not defined
3709
Age (days ago)
3709
Last active (days ago)
0 comments
1 participants
participants (1)
-
Don Webster