]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #26547: Remove outdated term dictproxy from vars() documentation
authorBerker Peksag <berker.peksag@gmail.com>
Fri, 24 Jun 2016 06:12:01 +0000 (09:12 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Fri, 24 Jun 2016 06:12:01 +0000 (09:12 +0300)
dictproxy was used in Python 2 and it was renamed to mappingproxy
in Python 3.3.

Patch by Julien.

Doc/library/functions.rst

index e60946362454bf70cb4aa680519a753763bc125b..efa5bd38a250e4ff36e5f03bfcdc1522e13f9463 100644 (file)
@@ -1469,7 +1469,7 @@ are always available.  They are listed here in alphabetical order.
    Objects such as modules and instances have an updateable :attr:`~object.__dict__`
    attribute; however, other objects may have write restrictions on their
    :attr:`~object.__dict__` attributes (for example, classes use a
-   dictproxy to prevent direct dictionary updates).
+   :class:`types.MappingProxyType` to prevent direct dictionary updates).
 
    Without an argument, :func:`vars` acts like :func:`locals`.  Note, the
    locals dictionary is only useful for reads since updates to the locals