8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5374b45 commit 6a34112Copy full SHA for 6a34112
classes.md
@@ -171,8 +171,11 @@ the `Website` class.
171
>>>
172
```
173
174
-In most cases it's not recommended to use class attributes. Using
175
-instance attributes instead is simpler.
+`Website.is_online` is `Website`'s class attribute, and in Python you can
+access class attributes through instances also, so in this case
176
+`stackoverflow.is_online` points to `Website.is_online`. That can be
177
+confusing, which is why it's not recommended to use class attributes like
178
+this. Use instance attributes instead, e.g. `stackoverflow.is_online = True`.
179
180
### Functions and methods
181
0 commit comments