Skip to content

Commit d6c7d3e

Browse files
committed
be explicit
1 parent c79e280 commit d6c7d3e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

classes.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ Now we can make a Website instance by calling the class.
9797
>>>
9898
```
9999

100-
We can attach more information about stackoverflow to the new Website
101-
instance.
100+
We can say that `stackoverflow` is "a Website instance", "a Website
101+
object" or "a Website". All of these mean the same thing.
102+
103+
Now we can attach more information about stackoverflow to our Website.
102104

103105
```py
104106
>>> stackoverflow.url = 'http://stackoverflow.com/'
@@ -127,6 +129,7 @@ new Website.
127129
**attributes**. More specifically, they are **instance attributes**.
128130
The biggest difference is that we need to use a dot for setting and
129131
getting values of attributes, but we don't need that with variables.
132+
130133
Modules also use instance attributes for accessing their content. For
131134
example, when we do `random.randint`, `random` is a module instance and
132135
`randint` is one of its attributes.

0 commit comments

Comments
 (0)