[docs] Context manager of socket.socket is not documented (issue 24911)

victor.stinner at gmail.com victor.stinner at gmail.com
Wed Feb 17 06:19:27 EST 2016


http://bugs.python.org/review/24911/diff/15445/Doc/library/socket.rst
File Doc/library/socket.rst (right):

http://bugs.python.org/review/24911/diff/15445/Doc/library/socket.rst#newcode771
Doc/library/socket.rst:771: Support for the :keyword:`with` statement
was added.  Exiting the
I suggest to use ":term:`context manager` protocol" instead, as:

https://docs.python.org/dev/library/os.html#os.scandir

"The scandir() iterator supports the context manager protocol and has
the following method:"

http://bugs.python.org/review/24911/


More information about the docs mailing list