Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d82b09

Browse files
committed
Fix typos
1 parent bd6db38 commit 9d82b09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Notes/05_Object_model/01_Dicts_revisited.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ involving dictionaries. This section discusses that.
77

88
### Dictionaries, Revisited
99

10-
Remember that a dictionary is a collection of names values.
10+
Remember that a dictionary is a collection of named values.
1111

1212
```python
1313
stock = {
@@ -58,7 +58,7 @@ A dictionary holds the instance data, `__dict__`.
5858
```python
5959
>>> s = Stock('GOOG', 100, 490.1)
6060
>>> s.__dict__
61-
{'name' : 'GOOG','shares' : 100, 'price': 490.1 }
61+
{'name' : 'GOOG', 'shares' : 100, 'price': 490.1 }
6262
```
6363

6464
You populate this dict (and instance) when assigning to `self`.
@@ -271,7 +271,7 @@ e = E()
271271
e.attr
272272
```
273273

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.
275275

276276
Python uses *cooperative multiple inheritance* which obeys some rules
277277
about class ordering.

0 commit comments

Comments
 (0)