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

bug [ 969757 ] function and method objects confounded in Tutorial

üst 6d394d9b
......@@ -3888,7 +3888,7 @@ class MyClass:
\end{verbatim}
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
of \code{MyClass.i} by assignment. \member{__doc__} is also a valid
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