From: Nice Zombies Date: Fri, 4 Oct 2024 11:33:54 +0000 (+0200) Subject: Fix console prompt syntax in What's New in Python 3.8 (#124968) X-Git-Tag: v3.14.0a1~186 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd393aedb84a7d84d11a996bcbbf57cad90af7db;p=thirdparty%2FPython%2Fcpython.git Fix console prompt syntax in What's New in Python 3.8 (#124968) --- diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index d0e60bc280a2..fc9f49e65af8 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')