273
273
+------------------+------------+------------+------------+
274
274
| | Sequence | Collection | Iterable |
275
275
+------------------+------------+------------+------------+
276
- | list, range, str | yes | yes | yes |
277
- | dict, set | | yes | yes |
278
- | iter | | | yes |
276
+ | list, range, str | Yes | Yes | Yes |
277
+ | dict, set | | Yes | Yes |
278
+ | iter | | | Yes |
279
279
+------------------+------------+------------+------------+
280
280
```
281
281
@@ -289,11 +289,11 @@ True
289
289
+--------------------+----------+----------+----------+----------+----------+
290
290
| | Integral | Rational | Real | Complex | Number |
291
291
+--------------------+----------+----------+----------+----------+----------+
292
- | int | yes | yes | yes | yes | yes |
293
- | fractions.Fraction | | yes | yes | yes | yes |
294
- | float | | | yes | yes | yes |
295
- | complex | | | | yes | yes |
296
- | decimal.Decimal | | | | | yes |
292
+ | int | Yes | Yes | Yes | Yes | Yes |
293
+ | fractions.Fraction | | Yes | Yes | Yes | Yes |
294
+ | float | | | Yes | Yes | Yes |
295
+ | complex | | | | Yes | Yes |
296
+ | decimal.Decimal | | | | | Yes |
297
297
+--------------------+----------+----------+----------+----------+----------+
298
298
```
299
299
@@ -337,11 +337,11 @@ String
337
337
+---------------+----------+----------+----------+----------+----------+
338
338
| | [ !#$%…] | [a-zA-Z] | [¼½¾] | [²³¹] | [0-9] |
339
339
+---------------+----------+----------+----------+----------+----------+
340
- | isprintable() | yes | yes | yes | yes | yes |
341
- | isalnum() | | yes | yes | yes | yes |
342
- | isnumeric() | | | yes | yes | yes |
343
- | isdigit() | | | | yes | yes |
344
- | isdecimal() | | | | | yes |
340
+ | isprintable() | Yes | Yes | Yes | Yes | Yes |
341
+ | isalnum() | | Yes | Yes | Yes | Yes |
342
+ | isnumeric() | | | Yes | Yes | Yes |
343
+ | isdigit() | | | | Yes | Yes |
344
+ | isdecimal() | | | | | Yes |
345
345
+---------------+----------+----------+----------+----------+----------+
346
346
```
347
347
* ** Also: ` 'isspace()' ` checks for ` '[ \t\n\r\f\v…]' ` .**
@@ -1274,13 +1274,13 @@ class MyAbcSequence(abc.Sequence):
1274
1274
+------------+------------+------------+------------+--------------+
1275
1275
| | Iterable | Collection | Sequence | abc.Sequence |
1276
1276
+------------+------------+------------+------------+--------------+
1277
- | iter() | REQ | REQ | yes | yes |
1278
- | contains() | yes | yes | yes | yes |
1277
+ | iter() | REQ | REQ | Yes | Yes |
1278
+ | contains() | Yes | Yes | Yes | Yes |
1279
1279
| len() | | REQ | REQ | REQ |
1280
1280
| getitem() | | | REQ | REQ |
1281
- | reversed() | | | yes | yes |
1282
- | index() | | | | yes |
1283
- | count() | | | | yes |
1281
+ | reversed() | | | Yes | Yes |
1282
+ | index() | | | | Yes |
1283
+ | count() | | | | Yes |
1284
1284
+------------+------------+------------+------------+--------------+
1285
1285
```
1286
1286
* ** Other ABCs that generate missing methods are: MutableSequence, Set, MutableSet, Mapping and MutableMapping.**
0 commit comments