Skip to content

Commit 33450d9

Browse files
committed
Inline
1 parent c9677f1 commit 33450d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,11 +530,15 @@ from functools import reduce
530530
from collections import namedtuple
531531
Point = namedtuple('Point', 'x y')
532532
point = Point(0, 0)
533+
```
533534

535+
```python
534536
from enum import Enum
535537
Direction = Enum('Direction', 'n e s w')
536538
Cutlery = Enum('Cutlery', {'knife': 1, 'fork': 2, 'spoon': 3})
539+
```
537540

541+
```python
538542
# Warning: Objects will share the objects that are initialized in the dictionary!
539543
Creature = type('Creature', (), {'p': Point(0, 0), 'd': Direction.n})
540544
creature = Creature()

0 commit comments

Comments
 (0)