mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bug [ 969757 ] function and method objects confounded in Tutorial
This commit is contained in:
parent
6d394d9b68
commit
8b687cf683
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue