Commit 3f819ca1 authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231)

parent 68f32371
...@@ -306,7 +306,7 @@ the same library that the Python runtime is using. ...@@ -306,7 +306,7 @@ the same library that the Python runtime is using.
Evaluate a precompiled code object, given a particular environment for its Evaluate a precompiled code object, given a particular environment for its
evaluation. This environment consists of a dictionary of global variables, evaluation. This environment consists of a dictionary of global variables,
a mapping object of local variables, arrays of arguments, keywords and a mapping object of local variables, arrays of arguments, keywords and
defaults, a dictionary of default values for :ref:`keyword-only\ defaults, a dictionary of default values for :ref:`keyword-only
<keyword-only_parameter>` arguments and a closure tuple of cells. <keyword-only_parameter>` arguments and a closure tuple of cells.
......
...@@ -183,8 +183,9 @@ the full reference. ...@@ -183,8 +183,9 @@ the full reference.
| *sources* | list of source filenames, | a list of strings | | *sources* | list of source filenames, | a list of strings |
| | relative to the distribution | | | | relative to the distribution | |
| | root (where the setup script | | | | root (where the setup script | |
| | lives), in Unix form (slash- | | | | lives), in Unix form | |
| | separated) for portability. | | | | (slash-separated) for | |
| | portability. | |
| | Source files may be C, C++, | | | | Source files may be C, C++, | |
| | SWIG (.i), platform-specific | | | | SWIG (.i), platform-specific | |
| | resource files, or whatever | | | | resource files, or whatever | |
...@@ -1566,8 +1567,8 @@ lines, and joining lines with backslashes. ...@@ -1566,8 +1567,8 @@ lines, and joining lines with backslashes.
+------------------+--------------------------------+---------+ +------------------+--------------------------------+---------+
| option name | description | default | | option name | description | default |
+==================+================================+=========+ +==================+================================+=========+
| *strip_comments* | strip from ``'#'`` to end-of- | true | | *strip_comments* | strip from ``'#'`` to | true |
| | line, as well as any | | | | end-of-line, as well as any | |
| | whitespace leading up to the | | | | whitespace leading up to the | |
| | ``'#'``\ ---unless it is | | | | ``'#'``\ ---unless it is | |
| | escaped by a backslash | | | | escaped by a backslash | |
......
...@@ -63,9 +63,9 @@ distribution to generate: for example, :: ...@@ -63,9 +63,9 @@ distribution to generate: for example, ::
python setup.py bdist --format=zip python setup.py bdist --format=zip
would, when run on a Unix system, create :file:`Distutils-1.0.{plat}.zip`\ would, when run on a Unix system, create
---again, this archive would be unpacked from the root directory to install the :file:`Distutils-1.0.{plat}.zip`\ ---again, this archive would be unpacked
Distutils. from the root directory to install the Distutils.
The available formats for built distributions are: The available formats for built distributions are:
......
...@@ -545,8 +545,9 @@ or more format codes between parentheses. For example:: ...@@ -545,8 +545,9 @@ or more format codes between parentheses. For example::
:c:func:`PyObject_CallObject` returns a Python object pointer: this is the return :c:func:`PyObject_CallObject` returns a Python object pointer: this is the return
value of the Python function. :c:func:`PyObject_CallObject` is value of the Python function. :c:func:`PyObject_CallObject` is
"reference-count-neutral" with respect to its arguments. In the example a new "reference-count-neutral" with respect to its arguments. In the example a new
tuple was created to serve as the argument list, which is :c:func:`Py_DECREF`\ tuple was created to serve as the argument list, which is
-ed immediately after the :c:func:`PyObject_CallObject` call. :c:func:`Py_DECREF`\ -ed immediately after the :c:func:`PyObject_CallObject`
call.
The return value of :c:func:`PyObject_CallObject` is "new": either it is a brand The return value of :c:func:`PyObject_CallObject` is "new": either it is a brand
new object, or it is an existing object whose reference count has been new object, or it is an existing object whose reference count has been
......
...@@ -971,7 +971,7 @@ provided: ...@@ -971,7 +971,7 @@ provided:
The :class:`NullHandler`, :class:`StreamHandler` and :class:`FileHandler` The :class:`NullHandler`, :class:`StreamHandler` and :class:`FileHandler`
classes are defined in the core logging package. The other handlers are classes are defined in the core logging package. The other handlers are
defined in a sub- module, :mod:`logging.handlers`. (There is also another defined in a sub-module, :mod:`logging.handlers`. (There is also another
sub-module, :mod:`logging.config`, for configuration functionality.) sub-module, :mod:`logging.config`, for configuration functionality.)
Logged messages are formatted for presentation through instances of the Logged messages are formatted for presentation through instances of the
......
...@@ -554,10 +554,10 @@ C headers ``--install-headers`` ...@@ -554,10 +554,10 @@ C headers ``--install-headers``
These override options can be relative, absolute, These override options can be relative, absolute,
or explicitly defined in terms of one of the installation base directories. or explicitly defined in terms of one of the installation base directories.
(There are two installation base directories, and they are normally the same--- (There are two installation base directories, and they are normally the
they only differ when you use the Unix "prefix scheme" and supply different same---they only differ when you use the Unix "prefix scheme" and supply
``--prefix`` and ``--exec-prefix`` options; using ``--install-lib`` will different ``--prefix`` and ``--exec-prefix`` options; using ``--install-lib``
override values computed or given for ``--install-purelib`` and will override values computed or given for ``--install-purelib`` and
``--install-platlib``, and is recommended for schemes that don't make a ``--install-platlib``, and is recommended for schemes that don't make a
difference between Python and extension modules.) difference between Python and extension modules.)
...@@ -584,10 +584,10 @@ in this case.) ...@@ -584,10 +584,10 @@ in this case.)
If you maintain Python on Windows, you might want third-party modules to live in If you maintain Python on Windows, you might want third-party modules to live in
a subdirectory of :file:`{prefix}`, rather than right in :file:`{prefix}` a subdirectory of :file:`{prefix}`, rather than right in :file:`{prefix}`
itself. This is almost as easy as customizing the script installation directory itself. This is almost as easy as customizing the script installation
---you just have to remember that there are two types of modules to worry about, directory---you just have to remember that there are two types of modules
Python and extension modules, which can conveniently be both controlled by one to worry about, Python and extension modules, which can conveniently be both
option:: controlled by one option::
python setup.py install --install-lib=Site python setup.py install --install-lib=Site
......
...@@ -1121,10 +1121,10 @@ particular, the following variants typically exist: ...@@ -1121,10 +1121,10 @@ particular, the following variants typically exist:
| | ks_c-5601, ks_c-5601-1987, | | | | ks_c-5601, ks_c-5601-1987, | |
| | ksx1001, ks_x-1001 | | | | ksx1001, ks_x-1001 | |
+-----------------+--------------------------------+--------------------------------+ +-----------------+--------------------------------+--------------------------------+
| gb2312 | chinese, csiso58gb231280, euc- | Simplified Chinese | | gb2312 | chinese, csiso58gb231280, | Simplified Chinese |
| | cn, euccn, eucgb2312-cn, | | | | euc-cn, euccn, eucgb2312-cn, | |
| | gb2312-1980, gb2312-80, iso- | | | | gb2312-1980, gb2312-80, | |
| | ir-58 | | | | iso-ir-58 | |
+-----------------+--------------------------------+--------------------------------+ +-----------------+--------------------------------+--------------------------------+
| gbk | 936, cp936, ms936 | Unified Chinese | | gbk | 936, cp936, ms936 | Unified Chinese |
+-----------------+--------------------------------+--------------------------------+ +-----------------+--------------------------------+--------------------------------+
......
...@@ -276,9 +276,10 @@ Supported operations: ...@@ -276,9 +276,10 @@ Supported operations:
| ``+t1`` | Returns a :class:`timedelta` object with the | | ``+t1`` | Returns a :class:`timedelta` object with the |
| | same value. (2) | | | same value. (2) |
+--------------------------------+-----------------------------------------------+ +--------------------------------+-----------------------------------------------+
| ``-t1`` | equivalent to :class:`timedelta`\ | | ``-t1`` | equivalent to |
| | (-*t1.days*, -*t1.seconds*, | | | :class:`timedelta`\ (-*t1.days*, |
| | -*t1.microseconds*), and to *t1*\* -1. (1)(4) | | | -*t1.seconds*, -*t1.microseconds*), |
| | and to *t1*\* -1. (1)(4) |
+--------------------------------+-----------------------------------------------+ +--------------------------------+-----------------------------------------------+
| ``abs(t)`` | equivalent to +\ *t* when ``t.days >= 0``, and| | ``abs(t)`` | equivalent to +\ *t* when ``t.days >= 0``, and|
| | to -*t* when ``t.days < 0``. (2) | | | to -*t* when ``t.days < 0``. (2) |
......
...@@ -149,8 +149,8 @@ Here are the methods of the :class:`Message` class: ...@@ -149,8 +149,8 @@ Here are the methods of the :class:`Message` class:
.. method:: is_multipart() .. method:: is_multipart()
Return ``True`` if the message's payload is a list of sub-\ Return ``True`` if the message's payload is a list of
:class:`Message` objects, otherwise return ``False``. When sub-\ :class:`Message` objects, otherwise return ``False``. When
:meth:`is_multipart` returns ``False``, the payload should be a string :meth:`is_multipart` returns ``False``, the payload should be a string
object (which might be a CTE encoded binary payload. (Note that object (which might be a CTE encoded binary payload. (Note that
:meth:`is_multipart` returning ``True`` does not necessarily mean that :meth:`is_multipart` returning ``True`` does not necessarily mean that
......
...@@ -130,8 +130,8 @@ message objects. ...@@ -130,8 +130,8 @@ message objects.
.. method:: is_multipart() .. method:: is_multipart()
Return ``True`` if the message's payload is a list of sub-\ Return ``True`` if the message's payload is a list of
:class:`EmailMessage` objects, otherwise return ``False``. When sub-\ :class:`EmailMessage` objects, otherwise return ``False``. When
:meth:`is_multipart` returns ``False``, the payload should be a string :meth:`is_multipart` returns ``False``, the payload should be a string
object (which might be a CTE encoded binary payload). Note that object (which might be a CTE encoded binary payload). Note that
:meth:`is_multipart` returning ``True`` does not necessarily mean that :meth:`is_multipart` returning ``True`` does not necessarily mean that
......
...@@ -904,7 +904,7 @@ re-entrant, and so cannot be invoked from such signal handlers. ...@@ -904,7 +904,7 @@ re-entrant, and so cannot be invoked from such signal handlers.
Module-Level Functions Module-Level Functions
---------------------- ----------------------
In addition to the classes described above, there are a number of module- level In addition to the classes described above, there are a number of module-level
functions. functions.
......
...@@ -388,8 +388,8 @@ flag that is turned on with ``-v`` and off with ``-q``:: ...@@ -388,8 +388,8 @@ flag that is turned on with ``-v`` and off with ``-q``::
parser.add_option("-q", action="store_false", dest="verbose") parser.add_option("-q", action="store_false", dest="verbose")
Here we have two different options with the same destination, which is perfectly Here we have two different options with the same destination, which is perfectly
OK. (It just means you have to be a bit careful when setting default values--- OK. (It just means you have to be a bit careful when setting default
see below.) values---see below.)
When :mod:`optparse` encounters ``-v`` on the command line, it sets When :mod:`optparse` encounters ``-v`` on the command line, it sets
``options.verbose`` to ``True``; when it encounters ``-q``, ``options.verbose`` to ``True``; when it encounters ``-q``,
...@@ -525,9 +525,9 @@ help message: ...@@ -525,9 +525,9 @@ help message:
default: ``"Usage: %prog [options]"``, which is fine if your script doesn't default: ``"Usage: %prog [options]"``, which is fine if your script doesn't
take any positional arguments. take any positional arguments.
* every option defines a help string, and doesn't worry about line-wrapping--- * every option defines a help string, and doesn't worry about
:mod:`optparse` takes care of wrapping lines and making the help output look line-wrapping---\ :mod:`optparse` takes care of wrapping lines and making
good. the help output look good.
* options that take a value indicate this fact in their automatically-generated * options that take a value indicate this fact in their automatically-generated
help message, e.g. for the "mode" option:: help message, e.g. for the "mode" option::
......
...@@ -3776,11 +3776,11 @@ written in Python, such as a mail server's external command delivery program. ...@@ -3776,11 +3776,11 @@ written in Python, such as a mail server's external command delivery program.
.. function:: wait3(options) .. function:: wait3(options)
Similar to :func:`waitpid`, except no process id argument is given and a Similar to :func:`waitpid`, except no process id argument is given and a
3-element tuple containing the child's process id, exit status indication, and 3-element tuple containing the child's process id, exit status indication,
resource usage information is returned. Refer to :mod:`resource`.\ and resource usage information is returned. Refer to
:func:`~resource.getrusage` for details on resource usage information. The :mod:`resource`.\ :func:`~resource.getrusage` for details on resource usage
option argument is the same as that provided to :func:`waitpid` and information. The option argument is the same as that provided to
:func:`wait4`. :func:`waitpid` and :func:`wait4`.
.. availability:: Unix. .. availability:: Unix.
......
...@@ -153,8 +153,7 @@ and (read-only) attributes: ...@@ -153,8 +153,7 @@ and (read-only) attributes:
number of bytes written. If the audio device is in blocking mode (the number of bytes written. If the audio device is in blocking mode (the
default), the entire data is always written (again, this is different from default), the entire data is always written (again, this is different from
usual Unix device semantics). If the device is in non-blocking mode, some usual Unix device semantics). If the device is in non-blocking mode, some
data may not be written data may not be written---see :meth:`writeall`.
---see :meth:`writeall`.
.. versionchanged:: 3.5 .. versionchanged:: 3.5
Writable :term:`bytes-like object` is now accepted. Writable :term:`bytes-like object` is now accepted.
......
...@@ -81,9 +81,9 @@ mode: ...@@ -81,9 +81,9 @@ mode:
.. function:: S_IMODE(mode) .. function:: S_IMODE(mode)
Return the portion of the file's mode that can be set by :func:`os.chmod`\ Return the portion of the file's mode that can be set by
---that is, the file's permission bits, plus the sticky bit, set-group-id, and :func:`os.chmod`\ ---that is, the file's permission bits, plus the sticky
set-user-id bits (on systems that support them). bit, set-group-id, and set-user-id bits (on systems that support them).
.. function:: S_IFMT(mode) .. function:: S_IFMT(mode)
......
...@@ -458,11 +458,11 @@ The available integer presentation types are: ...@@ -458,11 +458,11 @@ The available integer presentation types are:
+---------+----------------------------------------------------------+ +---------+----------------------------------------------------------+
| ``'o'`` | Octal format. Outputs the number in base 8. | | ``'o'`` | Octal format. Outputs the number in base 8. |
+---------+----------------------------------------------------------+ +---------+----------------------------------------------------------+
| ``'x'`` | Hex format. Outputs the number in base 16, using lower- | | ``'x'`` | Hex format. Outputs the number in base 16, using |
| | case letters for the digits above 9. | | | lower-case letters for the digits above 9. |
+---------+----------------------------------------------------------+ +---------+----------------------------------------------------------+
| ``'X'`` | Hex format. Outputs the number in base 16, using upper- | | ``'X'`` | Hex format. Outputs the number in base 16, using |
| | case letters for the digits above 9. | | | upper-case letters for the digits above 9. |
+---------+----------------------------------------------------------+ +---------+----------------------------------------------------------+
| ``'n'`` | Number. This is the same as ``'d'``, except that it uses | | ``'n'`` | Number. This is the same as ``'d'``, except that it uses |
| | the current locale setting to insert the appropriate | | | the current locale setting to insert the appropriate |
......
...@@ -51,8 +51,8 @@ The module defines the following functions: ...@@ -51,8 +51,8 @@ The module defines the following functions:
.. function:: tcsendbreak(fd, duration) .. function:: tcsendbreak(fd, duration)
Send a break on file descriptor *fd*. A zero *duration* sends a break for 0.25 Send a break on file descriptor *fd*. A zero *duration* sends a break for
--0.5 seconds; a nonzero *duration* has a system dependent meaning. 0.25--0.5 seconds; a nonzero *duration* has a system dependent meaning.
.. function:: tcdrain(fd) .. function:: tcdrain(fd)
......
...@@ -572,8 +572,8 @@ or tuple:: ...@@ -572,8 +572,8 @@ or tuple::
.. index:: .. index::
single: **; in function calls single: **; in function calls
In the same fashion, dictionaries can deliver keyword arguments with the ``**``\ In the same fashion, dictionaries can deliver keyword arguments with the
-operator:: ``**``\ -operator::
>>> def parrot(voltage, state='a stiff', action='voom'): >>> def parrot(voltage, state='a stiff', action='voom'):
... print("-- This parrot wouldn't", action, end=' ') ... print("-- This parrot wouldn't", action, end=' ')
......
...@@ -576,9 +576,9 @@ similar to a :keyword:`return` statement. The big difference between ...@@ -576,9 +576,9 @@ similar to a :keyword:`return` statement. The big difference between
variables are preserved. On the next call to the generator's ``next()`` method, variables are preserved. On the next call to the generator's ``next()`` method,
the function will resume executing immediately after the :keyword:`yield` the function will resume executing immediately after the :keyword:`yield`
statement. (For complicated reasons, the :keyword:`yield` statement isn't statement. (For complicated reasons, the :keyword:`yield` statement isn't
allowed inside the :keyword:`try` block of a :keyword:`try`...\ allowed inside the :keyword:`try` block of a
:keyword:`finally` statement; read :pep:`255` for a full explanation of the :keyword:`try`...\ :keyword:`finally` statement; read :pep:`255` for a full
interaction between :keyword:`yield` and exceptions.) explanation of the interaction between :keyword:`yield` and exceptions.)
Here's a sample usage of the :func:`generate_ints` generator:: Here's a sample usage of the :func:`generate_ints` generator::
......
...@@ -162,9 +162,9 @@ similar to a :keyword:`return` statement. The big difference between ...@@ -162,9 +162,9 @@ similar to a :keyword:`return` statement. The big difference between
variables are preserved. On the next call to the generator's ``.next()`` variables are preserved. On the next call to the generator's ``.next()``
method, the function will resume executing immediately after the method, the function will resume executing immediately after the
:keyword:`yield` statement. (For complicated reasons, the :keyword:`yield` :keyword:`yield` statement. (For complicated reasons, the :keyword:`yield`
statement isn't allowed inside the :keyword:`try` block of a :keyword:`try`...\ statement isn't allowed inside the :keyword:`try` block of a
:keyword:`finally` statement; read :pep:`255` for a full explanation of the :keyword:`try`...\ :keyword:`finally` statement; read :pep:`255` for a full
interaction between :keyword:`yield` and exceptions.) explanation of the interaction between :keyword:`yield` and exceptions.)
Here's a sample usage of the :func:`generate_ints` generator:: Here's a sample usage of the :func:`generate_ints` generator::
...@@ -1247,8 +1247,8 @@ complete list of changes, or look through the CVS logs for all the details. ...@@ -1247,8 +1247,8 @@ complete list of changes, or look through the CVS logs for all the details.
will have to change your ``import`` statements to import it as :mod:`bsddb`. will have to change your ``import`` statements to import it as :mod:`bsddb`.
* The new :mod:`bz2` module is an interface to the bz2 data compression library. * The new :mod:`bz2` module is an interface to the bz2 data compression library.
bz2-compressed data is usually smaller than corresponding :mod:`zlib`\ bz2-compressed data is usually smaller than corresponding
-compressed data. (Contributed by Gustavo Niemeyer.) :mod:`zlib`\ -compressed data. (Contributed by Gustavo Niemeyer.)
* A set of standard date/time types has been added in the new :mod:`datetime` * A set of standard date/time types has been added in the new :mod:`datetime`
module. See the following section for more details. module. See the following section for more details.
......
...@@ -448,8 +448,9 @@ when you're doing something with the returned value, as in the above example. ...@@ -448,8 +448,9 @@ when you're doing something with the returned value, as in the above example.
The parentheses aren't always necessary, but it's easier to always add them The parentheses aren't always necessary, but it's easier to always add them
instead of having to remember when they're needed. instead of having to remember when they're needed.
(:pep:`342` explains the exact rules, which are that a :keyword:`yield`\ (:pep:`342` explains the exact rules, which are that a
-expression must always be parenthesized except when it occurs at the top-level :keyword:`yield`\ -expression must always be parenthesized except when it
occurs at the top-level
expression on the right-hand side of an assignment. This means you can write expression on the right-hand side of an assignment. This means you can write
``val = yield i`` but have to use parentheses when there's an operation, as in ``val = yield i`` but have to use parentheses when there's an operation, as in
``val = (yield i) + 12``.) ``val = (yield i) + 12``.)
......
...@@ -1452,10 +1452,10 @@ in :issue:`18143`.) ...@@ -1452,10 +1452,10 @@ in :issue:`18143`.)
:class:`~ssl.SSLContext` has a new method, :class:`~ssl.SSLContext` has a new method,
:meth:`~ssl.SSLContext.cert_store_stats`, that reports the number of loaded :meth:`~ssl.SSLContext.cert_store_stats`, that reports the number of loaded
``X.509`` certs, ``X.509 CA`` certs, and certificate revocation lists (``crl``\ ``X.509`` certs, ``X.509 CA`` certs, and certificate revocation lists
s), as well as a :meth:`~ssl.SSLContext.get_ca_certs` method that returns a (``crl``\ s), as well as a :meth:`~ssl.SSLContext.get_ca_certs` method that
list of the loaded ``CA`` certificates. (Contributed by Christian Heimes in returns a list of the loaded ``CA`` certificates. (Contributed by Christian
:issue:`18147`.) Heimes in :issue:`18147`.)
If OpenSSL 0.9.8 or later is available, :class:`~ssl.SSLContext` has a new If OpenSSL 0.9.8 or later is available, :class:`~ssl.SSLContext` has a new
attribute :attr:`~ssl.SSLContext.verify_flags` that can be used to control the attribute :attr:`~ssl.SSLContext.verify_flags` that can be used to control the
......
...@@ -434,8 +434,9 @@ CPython bytecode changes ...@@ -434,8 +434,9 @@ CPython bytecode changes
* The interpreter loop has been simplified by moving the logic of unrolling * The interpreter loop has been simplified by moving the logic of unrolling
the stack of blocks into the compiler. The compiler emits now explicit the stack of blocks into the compiler. The compiler emits now explicit
instructions for adjusting the stack of values and calling the cleaning- instructions for adjusting the stack of values and calling the
up code for :keyword:`break`, :keyword:`continue` and :keyword:`return`. cleaning-up code for :keyword:`break`, :keyword:`continue` and
:keyword:`return`.
Removed opcodes :opcode:`BREAK_LOOP`, :opcode:`CONTINUE_LOOP`, Removed opcodes :opcode:`BREAK_LOOP`, :opcode:`CONTINUE_LOOP`,
:opcode:`SETUP_LOOP` and :opcode:`SETUP_EXCEPT`. Added new opcodes :opcode:`SETUP_LOOP` and :opcode:`SETUP_EXCEPT`. Added new opcodes
......
...@@ -2706,8 +2706,8 @@ Added support for the "xztar" format in the shutil module. ...@@ -2706,8 +2706,8 @@ Added support for the "xztar" format in the shutil module.
.. nonce: ZLsRil .. nonce: ZLsRil
.. section: Library .. section: Library
Don't force 3rd party C extensions to be built with -Werror=declaration- Don't force 3rd party C extensions to be built with
after-statement. -Werror=declaration-after-statement.
.. ..
...@@ -4464,8 +4464,8 @@ Improve repr of inspect.Signature and inspect.Parameter. ...@@ -4464,8 +4464,8 @@ Improve repr of inspect.Signature and inspect.Parameter.
.. nonce: DFMEgN .. nonce: DFMEgN
.. section: Library .. section: Library
Fix inspect.getcallargs() to raise correct TypeError for missing keyword- Fix inspect.getcallargs() to raise correct TypeError for missing
only arguments. Patch by Jeremiah Lowin. keyword-only arguments. Patch by Jeremiah Lowin.
.. ..
...@@ -5059,8 +5059,8 @@ Anticipated fixes to support OS X versions > 10.9. ...@@ -5059,8 +5059,8 @@ Anticipated fixes to support OS X versions > 10.9.
.. nonce: KAl7aO .. nonce: KAl7aO
.. section: Build .. section: Build
Prevent possible segfaults and other random failures of python --generate- Prevent possible segfaults and other random failures of python
posix-vars in pybuilddir.txt build target. --generate-posix-vars in pybuilddir.txt build target.
.. ..
......
...@@ -62,8 +62,8 @@ Fix the default __sizeof__ implementation for variable-sized objects. ...@@ -62,8 +62,8 @@ Fix the default __sizeof__ implementation for variable-sized objects.
.. nonce: b5M04V .. nonce: b5M04V
.. section: Library .. section: Library
The groupindex attribute of regular expression pattern object now is non- The groupindex attribute of regular expression pattern object now is
modifiable mapping. non-modifiable mapping.
.. ..
......
...@@ -110,8 +110,8 @@ by Martin Panter. ...@@ -110,8 +110,8 @@ by Martin Panter.
.. nonce: aAbWbQ .. nonce: aAbWbQ
.. section: Library .. section: Library
Restore semantic round-trip correctness in tokenize/untokenize for tab- Restore semantic round-trip correctness in tokenize/untokenize for
indented blocks. tab-indented blocks.
.. ..
......
...@@ -224,8 +224,8 @@ segment. ...@@ -224,8 +224,8 @@ segment.
.. nonce: hwXwCH .. nonce: hwXwCH
.. section: Library .. section: Library
SMTP.auth() and SMTP.login() now support RFC 4954's optional initial- SMTP.auth() and SMTP.login() now support RFC 4954's optional
response argument to the SMTP AUTH command. initial-response argument to the SMTP AUTH command.
.. ..
......
...@@ -159,8 +159,8 @@ twice. ...@@ -159,8 +159,8 @@ twice.
On Solaris 11.3 or newer, os.urandom() now uses the getrandom() function On Solaris 11.3 or newer, os.urandom() now uses the getrandom() function
instead of the getentropy() function. The getentropy() function is blocking instead of the getentropy() function. The getentropy() function is blocking
to generate very good quality entropy, os.urandom() doesn't need such high- to generate very good quality entropy, os.urandom() doesn't need such
quality entropy. high-quality entropy.
.. ..
...@@ -1083,11 +1083,11 @@ them a 'sheet'. Patch by Mark Roseman. ...@@ -1083,11 +1083,11 @@ them a 'sheet'. Patch by Mark Roseman.
.. nonce: -j_BV7 .. nonce: -j_BV7
.. section: IDLE .. section: IDLE
Enhance the initial html viewer now used for Idle Help. * Properly indent Enhance the initial html viewer now used for Idle Help. Properly indent
fixed-pitch text (patch by Mark Roseman). * Give code snippet a very Sphinx- fixed-pitch text (patch by Mark Roseman). Give code snippet a very
like light blueish-gray background. * Re-use initial width and height set by Sphinx-like light blueish-gray background. Re-use initial width and height
users for shell and editor. * When the Table of Contents (TOC) menu is used, set by users for shell and editor. When the Table of Contents (TOC) menu is
put the section header at the top of the screen. used, put the section header at the top of the screen.
.. ..
......
...@@ -568,9 +568,9 @@ string. Original fix by Ján Janech. ...@@ -568,9 +568,9 @@ string. Original fix by Ján Janech.
.. section: Library .. section: Library
The "urllib.request" module now percent-encodes non-ASCII bytes found in The "urllib.request" module now percent-encodes non-ASCII bytes found in
redirect target URLs. Some servers send Location header fields with non- redirect target URLs. Some servers send Location header fields with
ASCII bytes, but "http.client" requires the request target to be ASCII- non-ASCII bytes, but "http.client" requires the request target to be
encodable, otherwise a UnicodeEncodeError is raised. Based on patch by ASCII-encodable, otherwise a UnicodeEncodeError is raised. Based on patch by
Christian Heimes. Christian Heimes.
.. ..
...@@ -1952,10 +1952,10 @@ Fix linking extension modules for cross builds. Patch by Xavier de Gaye. ...@@ -1952,10 +1952,10 @@ Fix linking extension modules for cross builds. Patch by Xavier de Gaye.
.. nonce: HDjM4s .. nonce: HDjM4s
.. section: Build .. section: Build
Disable the rules for running _freeze_importlib and pgen when cross- Disable the rules for running _freeze_importlib and pgen when
compiling. The output of these programs is normally saved with the source cross-compiling. The output of these programs is normally saved with the
code anyway, and is still regenerated when doing a native build. Patch by source code anyway, and is still regenerated when doing a native build.
Xavier de Gaye. Patch by Xavier de Gaye.
.. ..
......
...@@ -81,8 +81,8 @@ astral characters. Patch by Xiang Zhang. ...@@ -81,8 +81,8 @@ astral characters. Patch by Xiang Zhang.
.. nonce: RYbEGH .. nonce: RYbEGH
.. section: Core and Builtins .. section: Core and Builtins
Extra slash no longer added to sys.path components in case of empty compile- Extra slash no longer added to sys.path components in case of empty
time PYTHONPATH components. compile-time PYTHONPATH components.
.. ..
...@@ -349,8 +349,8 @@ Patch written by Xiang Zhang. ...@@ -349,8 +349,8 @@ Patch written by Xiang Zhang.
.. section: Core and Builtins .. section: Core and Builtins
Standard __import__() no longer look up "__import__" in globals or builtins Standard __import__() no longer look up "__import__" in globals or builtins
for importing submodules or "from import". Fixed handling an error of non- for importing submodules or "from import". Fixed handling an error of
string package name. non-string package name.
.. ..
...@@ -1124,10 +1124,10 @@ after a commit. ...@@ -1124,10 +1124,10 @@ after a commit.
.. nonce: cYraeH .. nonce: cYraeH
.. section: Library .. section: Library
A new version of typing.py from https://github.com/python/typing: - A new version of typing.py from https://github.com/python/typing:
Collection (only for 3.6) (Issue #27598) - Add FrozenSet to __all__ Collection (only for 3.6) (Issue #27598). Add FrozenSet to __all__
(upstream #261) - fix crash in _get_type_vars() (upstream #259) - Remove the (upstream #261). Fix crash in _get_type_vars() (upstream #259). Remove the
dict constraint in ForwardRef._eval_type (upstream #252) dict constraint in ForwardRef._eval_type (upstream #252).
.. ..
...@@ -2070,9 +2070,9 @@ Update message in validate_ucrtbase.py ...@@ -2070,9 +2070,9 @@ Update message in validate_ucrtbase.py
.. section: Build .. section: Build
Cause lack of llvm-profdata tool when using clang as required for PGO Cause lack of llvm-profdata tool when using clang as required for PGO
linking to be a configure time error rather than make time when --with- linking to be a configure time error rather than make time when
optimizations is enabled. Also improve our ability to find the llvm- --with-optimizations is enabled. Also improve our ability to find the
profdata tool on MacOS and some Linuxes. llvm-profdata tool on MacOS and some Linuxes.
.. ..
...@@ -2131,7 +2131,7 @@ CPP invocation in configure must use CPPFLAGS. Patch by Chi Hsuan Yen. ...@@ -2131,7 +2131,7 @@ CPP invocation in configure must use CPPFLAGS. Patch by Chi Hsuan Yen.
.. section: Build .. section: Build
The configure script now inserts comments into the makefile to prevent the The configure script now inserts comments into the makefile to prevent the
pgen and _freeze_importlib executables from being cross- compiled. pgen and _freeze_importlib executables from being cross-compiled.
.. ..
......
...@@ -20,8 +20,8 @@ Upgrade expat copy from 2.2.0 to 2.2.1 to get fixes of multiple security ...@@ -20,8 +20,8 @@ Upgrade expat copy from 2.2.0 to 2.2.1 to get fixes of multiple security
vulnerabilities including: CVE-2017-9233 (External entity infinite loop vulnerabilities including: CVE-2017-9233 (External entity infinite loop
DoS), CVE-2016-9063 (Integer overflow, re-fix), CVE-2016-0718 (Fix DoS), CVE-2016-9063 (Integer overflow, re-fix), CVE-2016-0718 (Fix
regression bugs from 2.2.0's fix to CVE-2016-0718) and CVE-2012-0876 regression bugs from 2.2.0's fix to CVE-2016-0718) and CVE-2012-0876
(Counter hash flooding with SipHash). Note: the CVE-2016-5300 (Use os- (Counter hash flooding with SipHash). Note: the CVE-2016-5300 (Use
specific entropy sources like getrandom) doesn't impact Python, since Python os-specific entropy sources like getrandom) doesn't impact Python, since Python
already gets entropy from the OS to set the expat secret using already gets entropy from the OS to set the expat secret using
``XML_SetHashSalt()``. ``XML_SetHashSalt()``.
...@@ -290,8 +290,8 @@ Update zlib to 1.2.11. ...@@ -290,8 +290,8 @@ Update zlib to 1.2.11.
.. nonce: N3KI-o .. nonce: N3KI-o
.. section: Library .. section: Library
os.listdir() and os.scandir() now emit bytes names when called with bytes- os.listdir() and os.scandir() now emit bytes names when called with
like argument. bytes-like argument.
.. ..
...@@ -559,8 +559,8 @@ is received. ...@@ -559,8 +559,8 @@ is received.
.. section: Library .. section: Library
Various updates to typing module: add typing.NoReturn type, use Various updates to typing module: add typing.NoReturn type, use
WrapperDescriptorType, minor bug-fixes. Original PRs by Jim Fasarakis- WrapperDescriptorType, minor bug-fixes. Original PRs by Jim
Hilliard and Ivan Levkivskyi. Fasarakis-Hilliard and Ivan Levkivskyi.
.. ..
...@@ -1070,8 +1070,8 @@ default locale encoding is a multi-byte encoding) ...@@ -1070,8 +1070,8 @@ default locale encoding is a multi-byte encoding)
.. section: Build .. section: Build
Prevent unnecessary rebuilding of Python during ``make test``, ``make Prevent unnecessary rebuilding of Python during ``make test``, ``make
install`` and some other make targets when configured with ``--enable- install`` and some other make targets when configured with
optimizations``. ``--enable-optimizations``.
.. ..
......
Improve the C-API doc for PyTypeObject. This includes adding several quick- Improve the C-API doc for PyTypeObject. This includes adding several
reference tables and a lot of missing slot/typedef entries. The existing quick-reference tables and a lot of missing slot/typedef entries. The
entries were also cleaned up with a slightly more consistent format. existing entries were also cleaned up with a slightly more consistent format.
Avoid small type when running htests. Since part of the purpose of human- Avoid small type when running htests. Since part of the purpose of
viewed tests is to determine that widgets look right, it is important that human-viewed tests is to determine that widgets look right, it is important
they look the same for testing as when running IDLE. that they look the same for testing as when running IDLE.
Improve difflib.SequenceManager.get_matching_blocks doc by adding 'non- Improve difflib.SequenceManager.get_matching_blocks doc by adding
overlapping' and changing '!=' to '<'. 'non-overlapping' and changing '!=' to '<'.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment