From e9cf97cf20711dcede2e44b58f3ccc7d71280cc8 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Wed, 17 Oct 2012 16:41:28 +0300 Subject: Issue #16265: Fix collapsing of code sample in tutorial. Thanks to Yongzhi Pan from docs@ --- Doc/tutorial/inputoutput.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 '**' -- cgit v0.12