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 pitrou
Recipients Pam.McANulty, fdrake, pitrou
Date 2013-04-20.20:37:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366490275.67.0.613399841673.issue17530@psf.upfronthosting.co.za>
In-reply-to
Content
Ok, I hadn't noticed that pretty-printing a single string didn't add the parentheses as desired:

>>> pprint.pprint("abcd " * 6, width=15)
'abcd abcd '
'abcd abcd '
'abcd abcd '

On the other hand, the added parentheses aren't needed when inside a container (line continuations will work without them).

(and of course the same rules should apply to bytes objects :-))
History
Date User Action Args
2013-04-20 20:37:55pitrousetrecipients: + pitrou, fdrake, Pam.McANulty
2013-04-20 20:37:55pitrousetmessageid: <1366490275.67.0.613399841673.issue17530@psf.upfronthosting.co.za>
2013-04-20 20:37:55pitroulinkissue17530 messages
2013-04-20 20:37:55pitroucreate