10000 [3.11] Resolve reference warnings in faq/library.rst (GH-108149) (#10… · python/cpython@4be05aa · GitHub
[go: up one dir, main page]

Skip to content

Commit 4be05aa

Browse files
miss-islingtonAA-Turnererlend-aaslandhugovk
authored
[3.11] Resolve reference warnings in faq/library.rst (GH-108149) (#108183)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
1 parent ff82da1 commit 4be05aa

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Doc/faq/library.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Is there an equivalent to C's onexit() in Python?
111111
-------------------------------------------------
112112
113113
The :mod:`atexit` module provides a register function that is similar to C's
114-
:c:func:`onexit`.
114+
:c:func:`!onexit`.
115115
116116
117117
Why don't my signal handlers work?
@@ -397,7 +397,7 @@ These aren't::
397397
D[x] = D[x] + 1
398398
399399
Operations that replace other objects may invoke those other objects'
400-
:meth:`__del__` method when their reference count reaches zero, and that can
400+
:meth:`~object.__del__` method when their reference count reaches zero, and that can
401401
affect things. This is especially true for the mass updates to dictionaries and
402402
lists. When in doubt, use a mutex!
403403
@@ -765,14 +765,17 @@ The :mod:`select` module is commonly used to help with asynchronous I/O on
765765
sockets.
766766
767767
To prevent the TCP connect from blocking, you can set the socket to non-blocking
768-
mode. Then when you do the :meth:`socket.connect`, you will either connect immediately
768+
mode. Then when you do the :meth:`~socket.socket.connect`,
769+
you will either connect immediately
769770
(unlikely) or get an exception that contains the error number as ``.errno``.
770771
``errno.EINPROGRESS`` indicates that the connection is in progress, but hasn't
771772
finished yet. Different OSes will return different values, so you're going to
772773
have to check what's returned on your system.
773774
774-
You can use the :meth:`socket.connect_ex` method to avoid creating an exception. It will
775-
just return the errno value. To poll, you can call :meth:`socket.connect_ex` again later
775+
You can use the :meth:`~socket.socket.connect_ex` method
776+
to avoid creating an exception.
777+
It will just return the errno value.
778+
To poll, you can call :meth:`~socket.socket.connect_ex` again later
776779
-- ``0`` or ``errno.EISCONN`` indicate that you're connected -- or you can pass this
777780
socket to :meth:`select.select` to check if it's writable.
778781

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Doc/c-api/unicode.rst
2525
Doc/extending/extending.rst
2626
Doc/extending/newtypes.rst
2727
Doc/faq/gui.rst
28-
Doc/faq/library.rst
2928
Doc/glossary.rst
3029
Doc/howto/descriptor.rst
3130
Doc/howto/enum.rst

0 commit comments

Comments
 (0)
0