[issue17150] pprint could use line continuation for long string literals

2013-03-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is a nice addition. Thank you. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-

[issue17150] pprint could use line continuation for long string literals

2013-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I've committed the patch. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue17150] pprint could use line continuation for long string literals

2013-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a2296093645 by Antoine Pitrou in branch 'default': Issue #17150: pprint now uses line continuations to wrap long string literals. http://hg.python.org/cpython/rev/5a2296093645 -- nosy: +python-dev ___ Py

[issue17150] pprint could use line continuation for long string literals

2013-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a new patch with more tests and updated docs. -- Added file: http://bugs.python.org/file29515/str_pprint2.patch ___ Python tracker ___ _

[issue17150] pprint could use line continuation for long string literals

2013-03-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file29492/str_pprint.patch ___ Python tracker __

[issue17150] pprint could use line continuation for long string literals

2013-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: I was thinking we could re-use textwrap, actually. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue17150] pprint could use line continuation for long string literals

2013-02-07 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: I like this. It would be especially nice if it were smart enough to split the segments after sequences of line-ends (r'(\r?\n)+'). -- ___ Python tracker _

[issue17150] pprint could use line continuation for long string literals

2013-02-07 Thread Antoine Pitrou
New submission from Antoine Pitrou: Currently: >>> pprint.pprint({"a": "xxx " * 50}) {'a': 'xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx '}