Kaydet (Commit) b7f086f5 authored tarafından Georg Brandl's avatar Georg Brandl

backport bug [ 969757 ] function and method objects confounded in Tutorial

üst afe5e771
...@@ -3888,7 +3888,7 @@ class MyClass: ...@@ -3888,7 +3888,7 @@ class MyClass:
\end{verbatim} \end{verbatim}
then \code{MyClass.i} and \code{MyClass.f} are valid attribute then \code{MyClass.i} and \code{MyClass.f} are valid attribute
references, returning an integer and a method object, respectively. references, returning an integer and a function object, respectively.
Class attributes can also be assigned to, so you can change the value Class attributes can also be assigned to, so you can change the value
of \code{MyClass.i} by assignment. \member{__doc__} is also a valid of \code{MyClass.i} by assignment. \member{__doc__} is also a valid
attribute, returning the docstring belonging to the class: \code{"A attribute, returning the docstring belonging to the class: \code{"A
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment