[issue19168] pprint.pprint(..., compact=True) not implemented

Alexis Layton report at bugs.python.org
Sat Oct 5 00:39:34 CEST 2013


New submission from Alexis Layton:

Documentation for 3.4 states that the compact keyword-only argument has been added to 3.4. However:

Python 3.4.0a3 (default, Oct  2 2013, 14:05:02) 
[GCC 4.6.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pprint
>>> pprint(3, compact=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'module' object is not callable
>>> pprint.pprint(3, compact=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: pprint() got an unexpected keyword argument 'compact'
>>>

----------
components: Library (Lib)
messages: 198969
nosy: AlexisLayton
priority: normal
severity: normal
status: open
title: pprint.pprint(..., compact=True) not implemented
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19168>
_______________________________________


More information about the Python-bugs-list mailing list