diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-10-31 00:26:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 00:26:06 (GMT) |
commit | 3f819ca138db6945ee4271bf13e42db9f9b3b1e4 (patch) | |
tree | 7eab13b4f9da0c8936d423cd633594cf83ba870f /Doc/whatsnew | |
parent | 68f323715e6627c550d1e8ffed7e36f1bb4aa42b (diff) | |
download | cpython-3f819ca138db6945ee4271bf13e42db9f9b3b1e4.zip cpython-3f819ca138db6945ee4271bf13e42db9f9b3b1e4.tar.gz cpython-3f819ca138db6945ee4271bf13e42db9f9b3b1e4.tar.bz2 |
bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/2.2.rst | 6 | ||||
-rw-r--r-- | Doc/whatsnew/2.3.rst | 10 | ||||
-rw-r--r-- | Doc/whatsnew/2.5.rst | 5 | ||||
-rw-r--r-- | Doc/whatsnew/3.4.rst | 8 | ||||
-rw-r--r-- | Doc/whatsnew/3.8.rst | 5 |
5 files changed, 18 insertions, 16 deletions
diff --git a/Doc/whatsnew/2.2.rst b/Doc/whatsnew/2.2.rst index 0aa6003..c2ae866 100644 --- a/Doc/whatsnew/2.2.rst +++ b/Doc/whatsnew/2.2.rst @@ -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, the function will resume executing immediately after the :keyword:`yield` statement. (For complicated reasons, the :keyword:`yield` statement isn't -allowed inside the :keyword:`try` block of a :keyword:`try`...\ -:keyword:`finally` statement; read :pep:`255` for a full explanation of the -interaction between :keyword:`yield` and exceptions.) +allowed inside the :keyword:`try` block of a +:keyword:`try`...\ :keyword:`finally` statement; read :pep:`255` for a full +explanation of the interaction between :keyword:`yield` and exceptions.) Here's a sample usage of the :func:`generate_ints` generator:: diff --git a/Doc/whatsnew/2.3.rst b/Doc/whatsnew/2.3.rst index 590015a..37ba7c0 100644 --- a/Doc/whatsnew/2.3.rst +++ b/Doc/whatsnew/2.3.rst @@ -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()`` method, the function will resume executing immediately after the :keyword:`yield` statement. (For complicated reasons, the :keyword:`yield` -statement isn't allowed inside the :keyword:`try` block of a :keyword:`try`...\ -:keyword:`finally` statement; read :pep:`255` for a full explanation of the -interaction between :keyword:`yield` and exceptions.) +statement isn't allowed inside the :keyword:`try` block of a +:keyword:`try`...\ :keyword:`finally` statement; read :pep:`255` for a full +explanation of the interaction between :keyword:`yield` and exceptions.) 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. 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. - bz2-compressed data is usually smaller than corresponding :mod:`zlib`\ - -compressed data. (Contributed by Gustavo Niemeyer.) + bz2-compressed data is usually smaller than corresponding + :mod:`zlib`\ -compressed data. (Contributed by Gustavo Niemeyer.) * A set of standard date/time types has been added in the new :mod:`datetime` module. See the following section for more details. diff --git a/Doc/whatsnew/2.5.rst b/Doc/whatsnew/2.5.rst index d70b642..f803a29 100644 --- a/Doc/whatsnew/2.5.rst +++ b/Doc/whatsnew/2.5.rst @@ -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 instead of having to remember when they're needed. -(:pep:`342` explains the exact rules, which are that a :keyword:`yield`\ --expression must always be parenthesized except when it occurs at the top-level +(:pep:`342` explains the exact rules, which are that a +: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 ``val = yield i`` but have to use parentheses when there's an operation, as in ``val = (yield i) + 12``.) diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index 6597170..1099623 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -1452,10 +1452,10 @@ in :issue:`18143`.) :class:`~ssl.SSLContext` has a new method, :meth:`~ssl.SSLContext.cert_store_stats`, that reports the number of loaded -``X.509`` certs, ``X.509 CA`` certs, and certificate revocation lists (``crl``\ -s), as well as a :meth:`~ssl.SSLContext.get_ca_certs` method that returns a -list of the loaded ``CA`` certificates. (Contributed by Christian Heimes in -:issue:`18147`.) +``X.509`` certs, ``X.509 CA`` certs, and certificate revocation lists +(``crl``\ s), as well as a :meth:`~ssl.SSLContext.get_ca_certs` method that +returns a list of the loaded ``CA`` certificates. (Contributed by Christian +Heimes in :issue:`18147`.) 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 diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index 02391de..5397206 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -434,8 +434,9 @@ CPython bytecode changes * The interpreter loop has been simplified by moving the logic of unrolling the stack of blocks into the compiler. The compiler emits now explicit - instructions for adjusting the stack of values and calling the cleaning- - up code for :keyword:`break`, :keyword:`continue` and :keyword:`return`. + instructions for adjusting the stack of values and calling the + cleaning-up code for :keyword:`break`, :keyword:`continue` and + :keyword:`return`. Removed opcodes :opcode:`BREAK_LOOP`, :opcode:`CONTINUE_LOOP`, :opcode:`SETUP_LOOP` and :opcode:`SETUP_EXCEPT`. Added new opcodes |