Staging: this is not the live site, pydocs.org.
Networking and Interprocess Communication
close()
Close the socket. It cannot be used after this call.
Changed in 3.6
- 3.6: OSError is now raised if an error occurs when the underlying close() call is made.