[New-bugs-announce] [issue19104] pprint produces invalid output for long strings

Serhiy Storchaka report at bugs.python.org
Fri Sep 27 15:40:50 CEST 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue19104>
_______________________________________


More information about the New-bugs-announce mailing list