mirror of
https://github.com/python/cpython.git
synced 2024-11-25 10:54:51 +08:00
Fix typo reported by David Goodger. This closes SF patch #422383.
This commit is contained in:
parent
e9735ac215
commit
7c116d7acb
@ -401,6 +401,6 @@ are class variables; they are shared by all instances. To define
|
||||
instance variables, they must be given a value in the the
|
||||
\method{__init__()} method or in another method. Both class and
|
||||
instance variables are accessible through the notation
|
||||
```code{self.name}'', and an instance variable hides a class variable
|
||||
``\code{self.name}'', and an instance variable hides a class variable
|
||||
with the same name when accessed in this way. Class variables with
|
||||
immutable values can be used as defaults for instance variables.
|
||||
|
Loading…
Reference in New Issue
Block a user