]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix console prompt syntax in What's New in Python 3.8 (#124968)
authorNice Zombies <nineteendo19d0@gmail.com>
Fri, 4 Oct 2024 11:33:54 +0000 (13:33 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Oct 2024 11:33:54 +0000 (12:33 +0100)
Doc/whatsnew/3.8.rst

index d0e60bc280a2178ef752211d03521322d74fa67d..fc9f49e65af84733e52cd372bc752352c6473ab2 100644 (file)
@@ -428,9 +428,9 @@ Other Language Changes
   normal assignment syntax::
 
     >>> def parse(family):
-            lastname, *members = family.split()
-            return lastname.upper(), *members
-
+    ...     lastname, *members = family.split()
+    ...     return lastname.upper(), *members
+    ...
     >>> parse('simpsons homer marge bart lisa maggie')
     ('SIMPSONS', 'homer', 'marge', 'bart', 'lisa', 'maggie')