File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ involving dictionaries. This section discusses that.
7
7
8
8
### Dictionaries, Revisited
9
9
10
- Remember that a dictionary is a collection of names values.
10
+ Remember that a dictionary is a collection of named values.
11
11
12
12
``` python
13
13
stock = {
@@ -58,7 +58,7 @@ A dictionary holds the instance data, `__dict__`.
58
58
``` python
59
59
>> > s = Stock(' GOOG' , 100 , 490.1 )
60
60
>> > s.__dict__
61
- {' name' : ' GOOG' ,' shares' : 100 , ' price' : 490.1 }
61
+ {' name' : ' GOOG' , ' shares' : 100 , ' price' : 490.1 }
62
62
```
63
63
64
64
You populate this dict (and instance) when assigning to ` self ` .
@@ -271,7 +271,7 @@ e = E()
271
271
e.attr
272
272
```
273
273
274
- A attribute search process is carried out, but what is the order? That's a problem.
274
+ An attribute search process is carried out, but what is the order? That's a problem.
275
275
276
276
Python uses * cooperative multiple inheritance* which obeys some rules
277
277
about class ordering.
You can’t perform that action at this time.
0 commit comments