diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-10-17 13:41:28 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-10-17 13:41:28 (GMT) |
commit | e9cf97cf20711dcede2e44b58f3ccc7d71280cc8 (patch) | |
tree | 2db9b43fc1f89735ced1a1a0ddf0cd0c921c8bde /Doc/tutorial | |
parent | 45bb613e25a34eca3c286ee668821f3ca1859a0b (diff) | |
download | cpython-e9cf97cf20711dcede2e44b58f3ccc7d71280cc8.zip cpython-e9cf97cf20711dcede2e44b58f3ccc7d71280cc8.tar.gz cpython-e9cf97cf20711dcede2e44b58f3ccc7d71280cc8.tar.bz2 |
Issue #16265: Fix collapsing of code sample in tutorial.
Thanks to Yongzhi Pan from docs@
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/inputoutput.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 45de518..73143be 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 '**' |