Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9455df2

Browse files
committed
Add __delete__ method of properties
Reflow paragraph
1 parent c8996f5 commit 9455df2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Doc/whatsnew/whatsnew22.tex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,14 @@ \subsection{Descriptors}
210210

211211
\item \member{__doc__} is the attribute's docstring.
212212

213-
\item \method{__get__(\var{object})} is a method that retrieves the attribute value from \var{object}.
213+
\item \method{__get__(\var{object})} is a method that retrieves the
214+
attribute value from \var{object}.
214215

215216
\item \method{__set__(\var{object}, \var{value})} sets the attribute
216217
on \var{object} to \var{value}.
217218

219+
\item \method{__delete__(\var{object})} deletes the \var{value}
220+
attribute of \var{object}.
218221
\end{itemize}
219222

220223
For example, when you write \code{obj.x}, the steps that Python

0 commit comments

Comments
 (0)