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 <rep...@bugs.python.org>
<http://bugs.python.org/issue17881>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to