Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit abdc16e

Browse files
committed
Merge 3.3 (#16805)
2 parents 8546e22 + fa5e6e4 commit abdc16e

13 files changed

Lines changed: 28 additions & 6 deletions

File tree

Doc/c-api/arg.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ in any early abort case).
4545
Unless otherwise stated, buffers are not NUL-terminated.
4646

4747
.. note::
48+
4849
For all ``#`` variants of formats (``s#``, ``y#``, etc.), the type of
4950
the length argument (int or :c:type:`Py_ssize_t`) is controlled by
5051
defining the macro :c:macro:`PY_SSIZE_T_CLEAN` before including

Doc/c-api/init.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ code, or when embedding the Python interpreter:
582582
.. index:: module: _thread
583583
584584
.. note::
585+
585586
When only the main thread exists, no GIL operations are needed. This is a
586587
common situation (most Python programs do not use threads), and the lock
587588
operations slow the interpreter down a bit. Therefore, the lock is not

Doc/faq/library.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ For data that is more regular (e.g. a homogeneous list of ints or floats),
513513
you can also use the :mod:`array` module.
514514

515515
.. note::
516+
516517
To read and write binary data, it is mandatory to open the file in
517518
binary mode (here, passing ``"rb"`` to :func:`open`). If you use
518519
``"r"`` instead (the default), the file will be open in text mode

Doc/library/fractions.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ another rational number, or from a string.
9999
value of *flt*, which must be a :class:`float`. Beware that
100100
``Fraction.from_float(0.3)`` is not the same value as ``Fraction(3, 10)``
101101

102-
.. note:: From Python 3.2 onwards, you can also construct a
102+
.. note::
103+
104+
From Python 3.2 onwards, you can also construct a
103105
:class:`Fraction` instance directly from a :class:`float`.
104106

105107

@@ -108,7 +110,9 @@ another rational number, or from a string.
108110
This class method constructs a :class:`Fraction` representing the exact
109111
value of *dec*, which must be a :class:`decimal.Decimal` instance.
110112

111-
.. note:: From Python 3.2 onwards, you can also construct a
113+
.. note::
114+
115+
From Python 3.2 onwards, you can also construct a
112116
:class:`Fraction` instance directly from a :class:`decimal.Decimal`
113117
instance.
114118

Doc/library/getopt.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
--------------
1111

1212
.. note::
13+
1314
The :mod:`getopt` module is a parser for command line options whose API is
1415
designed to be familiar to users of the C :c:func:`getopt` function. Users who
1516
are unfamiliar with the C :c:func:`getopt` function or who would like to write

Doc/library/io.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,7 @@ than raw I/O does.
686686
:exc:`UnsupportedOperation`.
687687

688688
.. warning::
689+
689690
:class:`BufferedRWPair` does not attempt to synchronize accesses to
690691
its underlying raw streams. You should not pass it the same object
691692
as reader and writer; use :class:`BufferedRandom` instead.

Doc/library/logging.config.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ in :mod:`logging` itself) and defining handlers which are declared either in
148148
send it to the socket as a string of bytes preceded by a four-byte length
149149
string packed in binary using ``struct.pack('>L', n)``.
150150

151-
.. note:: Because portions of the configuration are passed through
151+
.. note::
152+
153+
Because portions of the configuration are passed through
152154
:func:`eval`, use of this function may open its users to a security risk.
153155
While the function only binds to a socket on ``localhost``, and so does
154156
not accept connections from remote machines, there are scenarios where
@@ -752,7 +754,9 @@ The ``class`` entry is optional. It indicates the name of the formatter's class
752754
:class:`~logging.Formatter` can present exception tracebacks in an expanded or
753755
condensed format.
754756

755-
.. note:: Due to the use of :func:`eval` as described above, there are
757+
.. note::
758+
759+
Due to the use of :func:`eval` as described above, there are
756760
potential security risks which result from using the :func:`listen` to send
757761
and receive configurations via sockets. The risks are limited to where
758762
multiple users with no mutual trust run code on the same machine; see the

Doc/library/os.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,9 @@ process and user.
260260

261261
Availability: Unix.
262262

263-
.. note:: On Mac OS X, :func:`getgroups` behavior differs somewhat from
263+
.. note::
264+
265+
On Mac OS X, :func:`getgroups` behavior differs somewhat from
264266
other Unix platforms. If the Python interpreter was built with a
265267
deployment target of :const:`10.5` or earlier, :func:`getgroups` returns
266268
the list of effective group ids associated with the current user process;

Doc/library/pkgutil.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ support.
147147
*prefix* is a string to output on the front of every module name on output.
148148

149149
.. note::
150+
150151
Only works for a :term:`finder` which defines an ``iter_modules()``
151152
method. This interface is non-standard, so the module also provides
152153
implementations for :class:`importlib.machinery.FileFinder` and
@@ -185,6 +186,7 @@ support.
185186
walk_packages(ctypes.__path__, ctypes.__name__ + '.')
186187

187188
.. note::
189+
188190
Only works for a :term:`finder` which defines an ``iter_modules()``
189191
method. This interface is non-standard, so the module also provides
190192
implementations for :class:`importlib.machinery.FileFinder` and

Doc/library/socket.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ to sockets.
799799
:keyword:`with` statement around them.
800800

801801
.. note::
802+
802803
:meth:`close()` releases the resource associated with a connection but
803804
does not necessarily close the connection immediately. If you want
804805
to close the connection in a timely fashion, call :meth:`shutdown()`

0 commit comments

Comments
 (0)