[Python-checkins] [doc] Fix typo in what's new in 3.10 (GH-26911) (GH-26940)

iritkatriel webhook-mailer at python.org
Tue Jun 29 07:12:28 EDT 2021


https://github.com/python/cpython/commit/a6acd1ab08cf684d63beb290e246699dce54b539
commit: a6acd1ab08cf684d63beb290e246699dce54b539
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2021-06-29T12:12:23+01:00
summary:

[doc] Fix typo in what's new in 3.10 (GH-26911) (GH-26940)

The `try` statement was missing a colon and therefore was not exemplifying the correct `SyntaxError`.
(cherry picked from commit dcb1caef5bd8e90e1ecb4c07d7114e51b49fe37a)

Co-authored-by: Rodrigo Girão Serrão <rodrigogiraoserrao at gmail.com>

files:
M Doc/whatsnew/3.10.rst

diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 5e510d8f6ed3a..7ac627ba19b0e 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -278,7 +278,7 @@ have been incorporated. Some of the most notable ones are as follows:
 
     .. code-block:: python
 
-        >>> try
+        >>> try:
         ...     x = 2
         ... something = 3
           File "<stdin>", line 3



More information about the Python-checkins mailing list