cpython (3.3): #17881: clarify documentation of plistlib.
http://hg.python.org/cpython/rev/6e9d21761fc1 changeset: 83570:6e9d21761fc1 branch: 3.3 parent: 83567:49459216d35b user: Ezio Melotti <ezio.melotti@gmail.com> date: Tue Apr 30 16:34:04 2013 +0300 summary: #17881: clarify documentation of plistlib. files: Doc/library/plistlib.rst | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/plistlib.rst b/Doc/library/plistlib.rst --- a/Doc/library/plistlib.rst +++ b/Doc/library/plistlib.rst @@ -47,8 +47,8 @@ .. function:: readPlist(pathOrFile) - Read a plist file. *pathOrFile* may either be a file name or a (readable) - file object. Return the unpacked root object (which usually is a + Read a plist file. *pathOrFile* may either be a file name or a (readable and + binary) file object. Return the unpacked root object (which usually is a dictionary). The XML data is parsed using the Expat parser from :mod:`xml.parsers.expat` @@ -59,7 +59,7 @@ .. function:: writePlist(rootObject, pathOrFile) Write *rootObject* to a plist file. *pathOrFile* may either be a file name - or a (writable) file object. + or a (writable and binary) file object. A :exc:`TypeError` will be raised if the object is of an unsupported type or a container that contains objects of unsupported types. -- Repository URL: http://hg.python.org/cpython
participants (1)
-
ezio.melotti