New submission from Serhiy Storchaka:

The documentation says:
"""The pprint module provides a capability to “pretty-print” arbitrary Python 
data structures in a form which can be used as input to the interpreter."""

But #since issue17150 long lines are splitted on shorter lines without 
continuation character and the result can't be used as input to the interpreter.

>>> pprint.pprint('abc '*20)
'abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc '\
'abc '

----------
components: Library (Lib)
keywords: easy
messages: 198474
nosy: fdrake, pitrou, serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: pprint produces invalid output for long strings
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19104>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to