[docs] socket.shutdown: how should be socket.SHUT_*

Don Webster paxguy at yahoo.com
Thu May 26 16:43:54 EDT 2016


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 


More information about the docs mailing list