File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ x Abstract Factory
11
11
x Builder
12
12
x Factory Method
13
13
X Prototype
14
- Singleton
14
+ x Singleton
15
15
X Prebound Methods
16
16
X Sentinel Object
17
17
X Module Globals
@@ -65,8 +65,6 @@ Fathers of OOP had in mind. We want to create objects that describe what
65
65
they are, and then bind behavior to them, rather than focus on what they
66
66
do, and then figure out what data they'll need to do that."
67
67
68
-
69
-
70
68
Why bottom out? Python strings are made of — strings!
71
69
72
70
in Go I keep making error
@@ -89,29 +87,21 @@ smaller piece of string? it’s a string too!
89
87
>>> type(s[4])
90
88
<class 'str'>
91
89
92
-
93
90
What should be at top of file; what order functions should go in.
94
91
95
-
96
92
Mention modules that prevent import * from subordinate modules
97
93
so the main package is where you import * its classes instead?
98
94
Probably import * just isn’t important enough today to mention:
99
95
# multiprocessing/context.py
100
96
__all__ = ()
101
97
102
-
103
98
Mention this someday?
104
99
/home/brandon/cpython/Lib/_collections_abc.py
105
100
27:__name__ = "collections.abc"
106
101
107
-
108
102
Discuss the happy fact that Python lacks any concept of a ``protected``
109
103
or ``private`` method.
110
104
111
- “>>>”
112
- chapters 8,9,10 move earlier, between 4/5
113
- closure vs class with __call__.
114
-
115
105
PEP-8 says “if not somelist”
116
106
Walrus; comprehensions
117
107
star unpacking
You can’t perform that action at this time.
0 commit comments