diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-10-17 13:46:50 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-10-17 13:46:50 (GMT) |
commit | a3f862e915484a6b42f541d89f8aad081532662e (patch) | |
tree | e7db8467243cd3a6c759738a3940e2c1ae52d50d | |
parent | 284529dcf437b650eb72e92b88608e60aa90e10f (diff) | |
parent | 65b4b40e245bd7f9aee4702eed6f448f12921a8a (diff) | |
download | cpython-a3f862e915484a6b42f541d89f8aad081532662e.zip cpython-a3f862e915484a6b42f541d89f8aad081532662e.tar.gz cpython-a3f862e915484a6b42f541d89f8aad081532662e.tar.bz2 |
Merge issue #16265: Fix collapsing of code sample in tutorial.
Thanks to Yongzhi Pan from docs@
-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 '**' |