mirror of
https://github.com/python/cpython.git
synced 2025-07-25 04:04:13 +00:00
Fix typo reported by David Goodger. This closes SF patch #422383.
This commit is contained in:
parent
e9735ac215
commit
7c116d7acb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
instance variables, they must be given a value in the the
|
||||||
\method{__init__()} method or in another method. Both class and
|
\method{__init__()} method or in another method. Both class and
|
||||||
instance variables are accessible through the notation
|
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
|
with the same name when accessed in this way. Class variables with
|
||||||
immutable values can be used as defaults for instance variables.
|
immutable values can be used as defaults for instance variables.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue