diff --git a/Doc/glossary.rst b/Doc/glossary.rst --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -158,6 +158,10 @@ the documentation for :ref:`function definitions ` and :ref:`class definitions ` for more about decorators. + deep copy + A way of copying that creates a new copy of the container and of all + its elements recursively. See also :term:`shallow copy`. + descriptor Any object which defines the methods :meth:`__get__`, :meth:`__set__`, or :meth:`__delete__`. When a class attribute is a descriptor, its special @@ -762,6 +766,12 @@ mapping rather than a sequence because the lookups use arbitrary :term:`immutable` keys rather than integers. + shallow copy + A way of copying that creates a new copy of the container but not + of the elements. This means that both the original container and its + copy will contain references to the same elements. See also + :term:`deep copy`. + single dispatch A form of :term:`generic function` dispatch where the implementation is chosen based on the type of a single argument.