This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients fdrake, pitrou, serhiy.storchaka
Date 2014-11-28.19:38:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1417203531.09.0.327152317385.issue19105@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you Antoine for your review.

But first variant of the patch doesn't affect an example at the top of this issue, it doesn't change string formatting. The second variant makes string formatting use all free space at the right. With the patch:

>>> import pprint
>>> print('='*80)  # a rule
================================================================================
>>> pprint.pprint([' '.join(str(i) for i in range(30))]*2)
['0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 '
 '29',
 '0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 '
 '29']
>>> pprint.pprint([[[[[[[[[[[[' '.join(str(i) for i in range(30))]]]]]]]]]]]]*2)
[[[[[[[[[[[['0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 '
            '25 26 27 28 29']]]]]]]]]]],
 [[[[[[[[[[['0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 '
            '25 26 27 28 29']]]]]]]]]]]]

Could you please make a review of new patch?
History
Date User Action Args
2014-11-28 19:38:51serhiy.storchakasetrecipients: + serhiy.storchaka, fdrake, pitrou
2014-11-28 19:38:51serhiy.storchakasetmessageid: <1417203531.09.0.327152317385.issue19105@psf.upfronthosting.co.za>
2014-11-28 19:38:51serhiy.storchakalinkissue19105 messages
2014-11-28 19:38:51serhiy.storchakacreate