[New-bugs-announce] [issue17881] plistlib.writePlist documentation clarification for file object
Lance Helsten
report at bugs.python.org
Tue Apr 30 15:22:22 CEST 2013
New submission from Lance Helsten:
plistlib.writePlist documentation states """Write 'rootObject' to a .plist file. 'pathOrFile' may either be a file name or a (writable) file object.""", but if a text IO object is given for the pathOrFile object (e.g. ``io.TextIOBase`` or ``sys.stdout``) a ``TypeError`` with message "must be str, not bytes" is raised.
To clarify the documentation should be changed to be """...or a (writable, binary) file object.""".
----------
messages: 188160
nosy: lanhel
priority: normal
severity: normal
status: open
title: plistlib.writePlist documentation clarification for file object
type: enhancement
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17881>
_______________________________________
More information about the New-bugs-announce
mailing list