From: Andrew M. Kuchling Date: Mon, 3 Dec 2001 20:55:37 +0000 (+0000) Subject: Add __delete__ method of properties X-Git-Tag: v2.2.1c1~579 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9455df2a5a628d9ca3578624df6e82f6d7404c1e;p=python Add __delete__ method of properties Reflow paragraph --- diff --git a/Doc/whatsnew/whatsnew22.tex b/Doc/whatsnew/whatsnew22.tex index 6984e29aef..7d3a0d84fc 100644 --- a/Doc/whatsnew/whatsnew22.tex +++ b/Doc/whatsnew/whatsnew22.tex @@ -210,11 +210,14 @@ have a few attributes of their own: \item \member{__doc__} is the attribute's docstring. -\item \method{__get__(\var{object})} is a method that retrieves the attribute value from \var{object}. +\item \method{__get__(\var{object})} is a method that retrieves the +attribute value from \var{object}. \item \method{__set__(\var{object}, \var{value})} sets the attribute on \var{object} to \var{value}. +\item \method{__delete__(\var{object})} deletes the \var{value} +attribute of \var{object}. \end{itemize} For example, when you write \code{obj.x}, the steps that Python