File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1138,10 +1138,10 @@ class MyAbcSequence(collections.abc.Sequence):
1138
1138
return self .a[i]
1139
1139
```
1140
1140
1141
- #### Table of provided methods:
1141
+ #### Table of the methods that each (duck) type provides :
1142
1142
``` text
1143
1143
+------------+----------+------------+----------+--------------+
1144
- | | iterable | collection | sequence | abc.Sequence |
1144
+ | | Iterable | Collection | Sequence | abc.Sequence |
1145
1145
+------------+----------+------------+----------+--------------+
1146
1146
| iter() | yes | yes | yes | yes |
1147
1147
| len() | | yes | yes | yes |
Original file line number Diff line number Diff line change @@ -1070,9 +1070,9 @@ <h3 id="collectionsabcsequence">Collections.abc.Sequence</h3>
1070
1070
< span class ="hljs-function "> < span class ="hljs-keyword "> def</ span > < span class ="hljs-title "> __getitem__</ span > < span class ="hljs-params "> (self, i)</ span > :</ span >
1071
1071
< span class ="hljs-keyword "> return</ span > self.a[i]
1072
1072
</ code > </ pre >
1073
- < h4 id ="tableofprovidedmethods "> Table of provided methods:</ h4 >
1073
+ < h4 id ="tableofthemethodsthateachducktypeprovides "> Table of the methods that each (duck) type provides :</ h4 >
1074
1074
< pre > < code class ="text language-text "> ┏━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━━━┓
1075
- ┃ │ iterable │ collection │ sequence │ abc.Sequence ┃
1075
+ ┃ │ Iterable │ Collection │ Sequence │ abc.Sequence ┃
1076
1076
┠────────────┼──────────┼────────────┼──────────┼──────────────┨
1077
1077
┃ iter() │ ✓ │ ✓ │ ✓ │ ✓ ┃
1078
1078
┃ len() │ │ ✓ │ ✓ │ ✓ ┃
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ const DIAGRAM_5_B =
142
142
143
143
const DIAGRAM_6_A =
144
144
'+------------+----------+------------+----------+--------------+\n' +
145
- '| | iterable | collection | sequence | abc.Sequence |\n' +
145
+ '| | Iterable | Collection | Sequence | abc.Sequence |\n' +
146
146
'+------------+----------+------------+----------+--------------+\n' +
147
147
'| iter() | yes | yes | yes | yes |\n' +
148
148
'| len() | | yes | yes | yes |\n' +
@@ -152,7 +152,7 @@ const DIAGRAM_6_A =
152
152
153
153
const DIAGRAM_6_B =
154
154
'┏━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n' +
155
- '┃ │ iterable │ collection │ sequence │ abc.Sequence ┃\n' +
155
+ '┃ │ Iterable │ Collection │ Sequence │ abc.Sequence ┃\n' +
156
156
'┠────────────┼──────────┼────────────┼──────────┼──────────────┨\n' +
157
157
'┃ iter() │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' +
158
158
'┃ len() │ │ ✓ │ ✓ │ ✓ ┃\n' +
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ const DIAGRAM_5_B =
110
110
111
111
const DIAGRAM_6_A =
112
112
'+------------+----------+------------+----------+--------------+\n' +
113
- '| | iterable | collection | sequence | abc.Sequence |\n' +
113
+ '| | Iterable | Collection | Sequence | abc.Sequence |\n' +
114
114
'+------------+----------+------------+----------+--------------+\n' +
115
115
'| iter() | yes | yes | yes | yes |\n' +
116
116
'| len() | | yes | yes | yes |\n' +
@@ -120,7 +120,7 @@ const DIAGRAM_6_A =
120
120
121
121
const DIAGRAM_6_B =
122
122
'┏━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n' +
123
- '┃ │ iterable │ collection │ sequence │ abc.Sequence ┃\n' +
123
+ '┃ │ Iterable │ Collection │ Sequence │ abc.Sequence ┃\n' +
124
124
'┠────────────┼──────────┼────────────┼──────────┼──────────────┨\n' +
125
125
'┃ iter() │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' +
126
126
'┃ len() │ │ ✓ │ ✓ │ ✓ ┃\n' +
You can’t perform that action at this time.
0 commit comments