[issue6226] Inconsistent 'file' vs 'stream' kwarg in pprint, other stdlibs
Philip Jenvey
report at bugs.python.org
Sun Jun 7 00:02:08 CEST 2009
New submission from Philip Jenvey <pjenvey at users.sourceforge.net>:
It'd be nice to eventually standardize on the kwarg name used for basic
file-like args in the stdlib. print, warnings.showwarning and some
others take a file= argument whereas pprint, getpass.getpass take
stream=
print and pprint in particular should match -- though they do have a
different option set, when you're using the same options this
consistency would ease replacing:
print(obj, file=sys.stderr)
with
pprint(obj, stream=sys.stderr)
----------
components: Library (Lib)
messages: 89020
nosy: pjenvey
severity: normal
status: open
title: Inconsistent 'file' vs 'stream' kwarg in pprint, other stdlibs
type: feature request
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6226>
_______________________________________
More information about the Python-bugs-list
mailing list