For questions related to the sockets module in the Python standard library, or more broadly socket programming in Python.
The Python library comes with a HOWTO document for sockets programming:
Socket Programming HOWTO — Python 3.x documentation
The standard library is well-documented:
socket
- Low-level networking interface
Like the title suggests, sockets are the basic facility for network connections, and on Unix, several other types of interprocess connections. Beginners who want to use a particular application-level protocol should often try to find an existing higher-level library for that instead of programming directly with sockets.