]> granicus.if.org Git - python/commitdiff
Add __delete__ method of properties
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 3 Dec 2001 20:55:37 +0000 (20:55 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 3 Dec 2001 20:55:37 +0000 (20:55 +0000)
Reflow paragraph

Doc/whatsnew/whatsnew22.tex

index 6984e29aef635742034d24231e4a0bfebd6cc5d4..7d3a0d84fcefd3e9cd818c84bf209b1b45c5b403 100644 (file)
@@ -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