diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-05-15 10:21:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-15 10:21:31 (GMT) |
commit | edef358ed6d05f927bf1636cc5a920a9d868b131 (patch) | |
tree | 287ae68661a797aa09b0aa979f776a5329b7c881 /Doc/library | |
parent | d812eb731d886065bdd9bc94a3f0e5dfdcd671a4 (diff) | |
download | cpython-edef358ed6d05f927bf1636cc5a920a9d868b131.zip cpython-edef358ed6d05f927bf1636cc5a920a9d868b131.tar.gz cpython-edef358ed6d05f927bf1636cc5a920a9d868b131.tar.bz2 |
bpo-29196: Removed old-deprecated classes Plist, Dict and _InternalDict (#488)
in the plistlib module. Dict values in the result of functions
readPlist() and readPlistFromBytes() are now exact dicts.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/plistlib.rst | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/Doc/library/plistlib.rst b/Doc/library/plistlib.rst index 9ba2266..7d306a2 100644 --- a/Doc/library/plistlib.rst +++ b/Doc/library/plistlib.rst @@ -133,14 +133,12 @@ The following functions are deprecated: This function calls :func:`load` to do the actual work, see the documentation of :func:`that function <load>` for an explanation of the keyword arguments. - .. note:: - - Dict values in the result have a ``__getattr__`` method that defers - to ``__getitem_``. This means that you can use attribute access to - access items of these dictionaries. - .. deprecated:: 3.4 Use :func:`load` instead. + .. versionchanged:: 3.7 + Dict values in the result are now normal dicts. You no longer can use + attribute access to access items of these dictionaries. + .. function:: writePlist(rootObject, pathOrFile) @@ -156,14 +154,12 @@ The following functions are deprecated: See :func:`load` for a description of the keyword arguments. - .. note:: - - Dict values in the result have a ``__getattr__`` method that defers - to ``__getitem_``. This means that you can use attribute access to - access items of these dictionaries. - .. deprecated:: 3.4 Use :func:`loads` instead. + .. versionchanged:: 3.7 + Dict values in the result are now normal dicts. You no longer can use + attribute access to access items of these dictionaries. + .. function:: writePlistToBytes(rootObject) @@ -174,18 +170,6 @@ The following functions are deprecated: The following classes are available: -.. class:: Dict([dict]): - - Return an extended mapping object with the same value as dictionary - *dict*. - - This class is a subclass of :class:`dict` where attribute access can - be used to access items. That is, ``aDict.key`` is the same as - ``aDict['key']`` for getting, setting and deleting items in the mapping. - - .. deprecated:: 3.0 - - .. class:: Data(data) Return a "data" wrapper object around the bytes object *data*. This is used |