From 4f919a741e5ddb2d6ebadd41d32d24f87f64f301 Mon Sep 17 00:00:00 2001 From: Paul Reece Date: Thu, 26 May 2022 21:02:31 -0400 Subject: [PATCH 1/2] changed the inputoutput docs to reflect the more specific wording mentioned in the issue discussion --- Doc/tutorial/inputoutput.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index b50063654e2628..caa3cde6111d6e 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -179,8 +179,7 @@ square brackets ``'[]'`` to access the keys. :: ... '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 '**' -notation. :: +This could also be done by passing the ``table`` dictionary as keyword arguments with the ``**`` notation. :: >>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678} >>> print('Jack: {Jack:d}; Sjoerd: {Sjoerd:d}; Dcab: {Dcab:d}'.format(**table)) From 59a4c0d768ac9102d52f4c182cf625cac81f0dfa Mon Sep 17 00:00:00 2001 From: paulreece <96156234+paulreece@users.noreply.github.com> Date: Thu, 26 May 2022 21:30:14 -0400 Subject: [PATCH 2/2] Update Doc/tutorial/inputoutput.rst Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> --- Doc/tutorial/inputoutput.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index caa3cde6111d6e..1f1ef28e5cad40 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -179,7 +179,8 @@ square brackets ``'[]'`` to access the keys. :: ... 'Dcab: {0[Dcab]:d}'.format(table)) Jack: 4098; Sjoerd: 4127; Dcab: 8637678 -This could also be done by passing the ``table`` dictionary as keyword arguments with the ``**`` notation. :: +This could also be done by passing the ``table`` dictionary as keyword arguments with the ``**`` +notation. :: >>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678} >>> print('Jack: {Jack:d}; Sjoerd: {Sjoerd:d}; Dcab: {Dcab:d}'.format(**table))