mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
I thought it was common practice to check things compiled before
checking them in? Oh well, this fixes various obvious mistakes and changes a subsubsubsection (which doesn't exist) into a subsubsection (which does). I'm not sure this matches the intent, but it seems to read OK on a quick skim.
This commit is contained in:
parent
7a924e6eb2
commit
2ab1d08f90
1 changed files with 5 additions and 5 deletions
|
@ -1199,7 +1199,7 @@ assignment. This should only be implemented if \samp{del
|
||||||
obj.\var{name}} is meaningful for the object.
|
obj.\var{name}} is meaningful for the object.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\subsubsection{More attribute access for new-style classes \lable{new-style-attribute-access}}
|
\subsubsection{More attribute access for new-style classes \label{new-style-attribute-access}}
|
||||||
|
|
||||||
The following methods only apply to new-style classes.
|
The following methods only apply to new-style classes.
|
||||||
|
|
||||||
|
@ -1215,7 +1215,7 @@ name to access any attributes it needs to access, for example,
|
||||||
\samp{object.__getattribute__(self, name)}.
|
\samp{object.__getattribute__(self, name)}.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\subsubsubsection{Implementing Descriptors \label{descriptors}}
|
\subsubsection{Implementing Descriptors \label{descriptors}}
|
||||||
|
|
||||||
The following methods only apply when an instance of the class
|
The following methods only apply when an instance of the class
|
||||||
containing the method (a so-called \emph{descriptor} class) is in
|
containing the method (a so-called \emph{descriptor} class) is in
|
||||||
|
@ -1235,13 +1235,13 @@ return the (computed) attribute value or raise an
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}[object]{__set__}{self, instance, value}
|
\begin{methoddesc}[object]{__set__}{self, instance, value}
|
||||||
Called to set the attribute on an instance \{instance} of the owner
|
Called to set the attribute on an instance \var{instance} of the owner
|
||||||
class to a new value, \var{value}.
|
class to a new value, \var{value}.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}[object]{__delete__}{self, instance}
|
\begin{methoddesc}[object]{__delete__}{self, instance}
|
||||||
Called to delete the attribute on an instance \{instance} of the owner
|
Called to delete the attribute on an instance \var{instance} of the
|
||||||
class.
|
owner class.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue