[issue36705] Unexpected Behaviour of pprint.pprint
Gavin D'souza
report at bugs.python.org
Tue Apr 23 08:54:52 EDT 2019
Gavin D'souza <gavin18d at gmail.com> added the comment:
if pprint is called without parameters, it returns a TypeError
>>> pprint()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: pprint() missing 1 required positional argument: 'object'
it would be beneficial however to return an empty string or a new line character instead. An erroneous call would generate an unnecessary run-time error in a huge script
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36705>
_______________________________________
More information about the Python-bugs-list
mailing list