summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorNice Zombies <nineteendo19d0@gmail.com>2024-10-04 11:33:54 (GMT)
committerGitHub <noreply@github.com>2024-10-04 11:33:54 (GMT)
commitbd393aedb84a7d84d11a996bcbbf57cad90af7db (patch)
tree58a2a469799a75135651dd54f7104c91e65099fb /Doc/whatsnew
parent480354dc236af9ae9d47b2520aa85fb7293c7b68 (diff)
downloadcpython-bd393aedb84a7d84d11a996bcbbf57cad90af7db.zip
cpython-bd393aedb84a7d84d11a996bcbbf57cad90af7db.tar.gz
cpython-bd393aedb84a7d84d11a996bcbbf57cad90af7db.tar.bz2
Fix console prompt syntax in What's New in Python 3.8 (#124968)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.8.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index d0e60bc..fc9f49e 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -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')