| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -111,7 +111,7 @@ Is there an equivalent to C's onexit() in Python? | |||
| 111 | 111 | ------------------------------------------------- | |
| 112 | 112 | ||
| 113 | 113 | The :mod:`atexit` module provides a register function that is similar to C's | |
| 114 | - :c:func:`onexit`. | ||
| 114 | + :c:func:`!onexit`. | ||
| 115 | 115 | ||
| 116 | 116 | ||
| 117 | 117 | Why don't my signal handlers work? | |
@@ -397,7 +397,7 @@ These aren't:: | |||
| 397 | 397 | D[x] = D[x] + 1 | |
| 398 | 398 | ||
| 399 | 399 | 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 | ||
| 401 | 401 | affect things. This is especially true for the mass updates to dictionaries and | |
| 402 | 402 | lists. When in doubt, use a mutex! | |
| 403 | 403 | ||
@@ -730,14 +730,17 @@ The :mod:`select` module is commonly used to help with asynchronous I/O on | |||
| 730 | 730 | sockets. | |
| 731 | 731 | ||
| 732 | 732 | To prevent the TCP connect from blocking, you can set the socket to non-blocking | |
| 733 | - mode. Then when you do the :meth:`socket.connect`, you will either connect immediately | ||
| 733 | + mode. Then when you do the :meth:`~socket.socket.connect`, | ||
| 734 | + you will either connect immediately | ||
| 734 | 735 | (unlikely) or get an exception that contains the error number as ``.errno``. | |
| 735 | 736 | ``errno.EINPROGRESS`` indicates that the connection is in progress, but hasn't | |
| 736 | 737 | finished yet. Different OSes will return different values, so you're going to | |
| 737 | 738 | have to check what's returned on your system. | |
| 738 | 739 | ||
| 739 | - You can use the :meth:`socket.connect_ex` method to avoid creating an exception. It will | ||
| 740 | - just return the errno value. To poll, you can call :meth:`socket.connect_ex` again later | ||
| 740 | + You can use the :meth:`~socket.socket.connect_ex` method | ||
| 741 | + to avoid creating an exception. | ||
| 742 | + It will just return the errno value. | ||
| 743 | + To poll, you can call :meth:`~socket.socket.connect_ex` again later | ||
| 741 | 744 | -- ``0`` or ``errno.EISCONN`` indicate that you're connected -- or you can pass this | |
| 742 | 745 | socket to :meth:`select.select` to check if it's writable. | |
| 743 | 746 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,6 @@ Doc/c-api/unicode.rst | |||
| 25 | 25 | Doc/extending/extending.rst | |
| 26 | 26 | Doc/extending/newtypes.rst | |
| 27 | 27 | Doc/faq/gui.rst | |
| 28 | - Doc/faq/library.rst | ||
| 29 | 28 | Doc/glossary.rst | |
| 30 | 29 | Doc/howto/descriptor.rst | |
| 31 | 30 | Doc/howto/enum.rst | |
| Back | FazBrowse Home | New Git URL |
0 commit comments