Commit 33f73a1
authored
Merge pull request fluentpython#3 from eumiro/py36plus
Modernize code to Python 3.6+ and some cleanupFile tree
Expand file treeCollapse file tree
86 files changed
+153
-189
lines changedOpen diff view settings
Filter options
- 01-data-model
- 02-array-seq
- 03-dict-set
- support
- 04-text-byte
- charfinder
- 05-record-like
- dataclass
- typing_namedtuple
- 06-obj-ref
- 07-1class-func
- 08-def-type-hints
- RPN_calc
- comparable
- coordinates
- mode
- typeddict
- 09-closure-deco
- 10-dp-1class-func
- monkeytype
- pytypes
- untyped
- 11-pythonic-obj
- private
- 20-concurrency/primes
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
86 files changed
+153
-189
lines changedOpen diff view settings
Collapse file
+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | | - |
30 | 29 | |
31 | 30 | |
32 | 31 | |
| ||
39 | 38 | |
40 | 39 | |
41 | 40 | |
42 | | - |
| 41 | + |
43 | 42 | |
44 | 43 | |
45 | 44 | |
|
Collapse file
02-array-seq/bisect_demo.py
Copy file name to clipboardExpand all lines: 02-array-seq/bisect_demo.py+11-11Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
19 | 19 | |
20 | 20 | |
21 | 21 | |
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
35 | 35 | |
36 | 36 | |
37 | 37 | |
| ||
59 | 59 | |
60 | 60 | |
61 | 61 | |
62 | | - |
| 62 | + |
63 | 63 | |
64 | 64 | |
65 | 65 | |
Collapse file
02-array-seq/bisect_insort.py
Copy file name to clipboardExpand all lines: 02-array-seq/bisect_insort.py+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | | - |
| 10 | + |
11 | 11 | |
12 | | - |
| 12 | + |
Collapse file
02-array-seq/listcomp_speed.py
Copy file name to clipboardExpand all lines: 02-array-seq/listcomp_speed.py+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
13 | | - |
| 13 | + |
14 | 14 | |
15 | 15 | |
16 | 16 | |
|
Collapse file
02-array-seq/metro_lat_long.py
Copy file name to clipboardExpand all lines: 02-array-seq/metro_lat_long.py+3-4Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
| 7 | + |
8 | 8 | |
9 | 9 | |
10 | 10 | |
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | | - |
24 | | - |
| 23 | + |
25 | 24 | |
26 | 25 | |
27 | | - |
| 26 | + |
28 | 27 | |
29 | 28 | |
30 | 29 | |
Collapse file
03-dict-set/index_default.py
Copy file name to clipboardExpand all lines: 03-dict-set/index_default.py+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
| 19 | + |
20 | 20 | |
21 | 21 | |
22 | 22 | |
|
Collapse file
03-dict-set/support/container_perftest.py
Copy file name to clipboardExpand all lines: 03-dict-set/support/container_perftest.py+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
41 | 41 | |
42 | 42 | |
43 | 43 | |
44 | | - |
| 44 | + |
45 | 45 | |
46 | | - |
| 46 | + |
47 | 47 | |
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | 51 | |
52 | 52 | |
53 | | - |
| 53 | + |
54 | 54 | |
55 | 55 | |
Collapse file
03-dict-set/support/container_perftest_datagen.py
Copy file name to clipboardExpand all lines: 03-dict-set/support/container_perftest_datagen.py+7-7Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
6 | 5 | |
| 6 | + |
7 | 7 | |
8 | 8 | |
9 | 9 | |
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | | - |
16 | | - |
| 15 | + |
| 16 | + |
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
| 20 | + |
21 | 21 | |
22 | | - |
| 22 | + |
23 | 23 | |
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
| 28 | + |
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | 33 | |
34 | | - |
| 34 | + |
35 | 35 | |
36 | 36 | |
37 | 37 | |
Collapse file
03-dict-set/support/hashdiff.py
Copy file name to clipboardExpand all lines: 03-dict-set/support/hashdiff.py+6-6Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
| 4 | + |
5 | 5 | |
6 | 6 | |
7 | | - |
8 | | - |
| 7 | + |
| 8 | + |
9 | 9 | |
10 | | - |
| 10 | + |
11 | 11 | |
12 | 12 | |
13 | | - |
14 | | - |
| 13 | + |
| 14 | + |
15 | 15 | |
16 | 16 | |
17 | 17 | |
|
Collapse file
03-dict-set/transformdict.py
Copy file name to clipboardExpand all lines: 03-dict-set/transformdict.py+16-17Lines changed: 16 additions & 17 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
| 20 | + |
21 | 21 | |
22 | 22 | |
23 | 23 | |
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | | - |
| 29 | + |
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | 33 | |
34 | | - |
| 34 | + |
35 | 35 | |
36 | 36 | |
37 | | - |
| 37 | + |
38 | 38 | |
39 | | - |
40 | | - |
| 39 | + |
| 40 | + |
41 | 41 | |
42 | 42 | |
43 | 43 | |
| ||
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | | - |
| 51 | + |
52 | 52 | |
53 | 53 | |
54 | 54 | |
55 | 55 | |
56 | 56 | |
57 | 57 | |
58 | 58 | |
59 | | - |
| 59 | + |
60 | 60 | |
61 | 61 | |
62 | 62 | |
| ||
83 | 83 | |
84 | 84 | |
85 | 85 | |
86 | | - |
| 86 | + |
87 | 87 | |
88 | 88 | |
89 | 89 | |
90 | 90 | |
91 | 91 | |
92 | 92 | |
93 | 93 | |
94 | | - |
| 94 | + |
95 | 95 | |
96 | 96 | |
97 | 97 | |
98 | | - |
| 98 | + |
99 | 99 | |
100 | 100 | |
101 | | - |
| 101 | + |
102 | 102 | |
103 | 103 | |
104 | 104 | |
| ||
108 | 108 | |
109 | 109 | |
110 | 110 | |
111 | | - |
| 111 | + |
112 | 112 | |
113 | | - |
| 113 | + |
114 | 114 | |
115 | 115 | |
116 | 116 | |
117 | 117 | |
118 | 118 | |
119 | 119 | |
120 | | - |
| 120 | + |
121 | 121 | |
122 | 122 | |
123 | 123 | |
| ||
137 | 137 | |
138 | 138 | |
139 | 139 | |
140 | | - |
141 | | - |
| 140 | + |
0 commit comments