mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-106909: Use role :const: for referencing module constants (GH-106910)
This commit is contained in:
parent
d036db728e
commit
4b9948617f
64 changed files with 238 additions and 238 deletions
|
@ -2252,7 +2252,7 @@ This is because the previous execution has left the socket in a ``TIME_WAIT``
|
|||
state, and can't be immediately reused.
|
||||
|
||||
There is a :mod:`socket` flag to set, in order to prevent this,
|
||||
:data:`socket.SO_REUSEADDR`::
|
||||
:const:`socket.SO_REUSEADDR`::
|
||||
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue