summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-05-15 10:21:31 (GMT)
committerGitHub <noreply@github.com>2017-05-15 10:21:31 (GMT)
commitedef358ed6d05f927bf1636cc5a920a9d868b131 (patch)
tree287ae68661a797aa09b0aa979f776a5329b7c881 /Doc
parentd812eb731d886065bdd9bc94a3f0e5dfdcd671a4 (diff)
downloadcpython-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')
-rw-r--r--Doc/library/plistlib.rst32
-rw-r--r--Doc/whatsnew/3.7.rst6
2 files changed, 14 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
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index 8e5ac52..c305e5a 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -299,6 +299,12 @@ API and Feature Removals
longer take keyword arguments. The first argument of :func:`int` can now
be passes only as positional argument.
+* Removed previously deprecated in Python 2.4 classes ``Plist``, ``Dict`` and
+ ``_InternalDict`` in the :mod:`plistlib` module. Dict values in the result
+ of functions :func:`~plistlib.readPlist` and
+ :func:`~plistlib.readPlistFromBytes` are now normal dicts. You no longer
+ can use attribute access to access items of these dictionaries.
+
Porting to Python 3.7
=====================