From: Andrew Svetlov Date: Wed, 17 Oct 2012 13:41:28 +0000 (+0300) Subject: Issue #16265: Fix collapsing of code sample in tutorial. X-Git-Tag: v3.2.4rc1~433 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9cf97cf20711dcede2e44b58f3ccc7d71280cc8;p=thirdparty%2FPython%2Fcpython.git Issue #16265: Fix collapsing of code sample in tutorial. Thanks to Yongzhi Pan from docs@ --- diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 45de518de81c..73143bee803f 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -184,7 +184,7 @@ square brackets ``'[]'`` to access the keys :: >>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678} >>> print('Jack: {0[Jack]:d}; Sjoerd: {0[Sjoerd]:d}; ' - 'Dcab: {0[Dcab]:d}'.format(table)) + ... 'Dcab: {0[Dcab]:d}'.format(table)) Jack: 4098; Sjoerd: 4127; Dcab: 8637678 This could also be done by passing the table as keyword arguments with the '**'