Issue 16265: Code sample does not collapse correctly (original) (raw)
http://docs.python.org/py3k/tutorial/inputoutput.html#fancier-output-formatting
In the last but second code sample in that section, the code is not correctly colored and cannot be correctly collapsed.
Expanded:
table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678} print ('Jack: {0[Jack]:d}; Sjoerd: {0[Sjoerd]:d}; ' ... 'Dcab: {0[Dcab]:d}'.format(table)) Jack: 4098; Sjoerd: 4127; Dcab: 8637678
Collapsed:
table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678} print('Jack: {0[Jack]:d}; Sjoerd: {0[Sjoerd]:d}; '