From b303d1af108e6572acb0490fc490e9746ce1b1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 21 Jan 2020 21:38:10 +0100 Subject: [PATCH] Tables, 'yes' to 'Yes' --- README.md | 36 ++++++++++++++++++------------------ index.html | 36 ++++++++++++++++++------------------ 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 611e743..23dc4d8 100644 --- a/README.md +++ b/README.md @@ -273,9 +273,9 @@ True +------------------+------------+------------+------------+ | | Sequence | Collection | Iterable | +------------------+------------+------------+------------+ -| list, range, str | yes | yes | yes | -| dict, set | | yes | yes | -| iter | | | yes | +| list, range, str | Yes | Yes | Yes | +| dict, set | | Yes | Yes | +| iter | | | Yes | +------------------+------------+------------+------------+ ``` @@ -289,11 +289,11 @@ True +--------------------+----------+----------+----------+----------+----------+ | | Integral | Rational | Real | Complex | Number | +--------------------+----------+----------+----------+----------+----------+ -| int | yes | yes | yes | yes | yes | -| fractions.Fraction | | yes | yes | yes | yes | -| float | | | yes | yes | yes | -| complex | | | | yes | yes | -| decimal.Decimal | | | | | yes | +| int | Yes | Yes | Yes | Yes | Yes | +| fractions.Fraction | | Yes | Yes | Yes | Yes | +| float | | | Yes | Yes | Yes | +| complex | | | | Yes | Yes | +| decimal.Decimal | | | | | Yes | +--------------------+----------+----------+----------+----------+----------+ ``` @@ -337,11 +337,11 @@ String +---------------+----------+----------+----------+----------+----------+ | | [ !#$%…] | [a-zA-Z] | [¼½¾] | [²³¹] | [0-9] | +---------------+----------+----------+----------+----------+----------+ -| isprintable() | yes | yes | yes | yes | yes | -| isalnum() | | yes | yes | yes | yes | -| isnumeric() | | | yes | yes | yes | -| isdigit() | | | | yes | yes | -| isdecimal() | | | | | yes | +| isprintable() | Yes | Yes | Yes | Yes | Yes | +| isalnum() | | Yes | Yes | Yes | Yes | +| isnumeric() | | | Yes | Yes | Yes | +| isdigit() | | | | Yes | Yes | +| isdecimal() | | | | | Yes | +---------------+----------+----------+----------+----------+----------+ ``` * **Also: `'isspace()'` checks for `'[ \t\n\r\f\v…]'`.** @@ -1274,13 +1274,13 @@ class MyAbcSequence(abc.Sequence): +------------+------------+------------+------------+--------------+ | | Iterable | Collection | Sequence | abc.Sequence | +------------+------------+------------+------------+--------------+ -| iter() | REQ | REQ | yes | yes | -| contains() | yes | yes | yes | yes | +| iter() | REQ | REQ | Yes | Yes | +| contains() | Yes | Yes | Yes | Yes | | len() | | REQ | REQ | REQ | | getitem() | | | REQ | REQ | -| reversed() | | | yes | yes | -| index() | | | | yes | -| count() | | | | yes | +| reversed() | | | Yes | Yes | +| index() | | | | Yes | +| count() | | | | Yes | +------------+------------+------------+------------+--------------+ ``` * **Other ABCs that generate missing methods are: MutableSequence, Set, MutableSet, Mapping and MutableMapping.** diff --git a/index.html b/index.html index f2b38f3..c7377c2 100644 --- a/index.html +++ b/index.html @@ -398,9 +398,9 @@ to_exclusive = <range>.stop
+------------------+------------+------------+------------+
 |                  |  Sequence  | Collection |  Iterable  |
 +------------------+------------+------------+------------+
-| list, range, str |    yes     |    yes     |    yes     |
-| dict, set        |            |    yes     |    yes     |
-| iter             |            |            |    yes     |
+| list, range, str |    Yes     |    Yes     |    Yes     |
+| dict, set        |            |    Yes     |    Yes     |
+| iter             |            |            |    Yes     |
 +------------------+------------+------------+------------+
 
>>> from numbers import Integral, Rational, Real, Complex, Number
@@ -410,11 +410,11 @@ to_exclusive   = <range>.stop
 
+--------------------+----------+----------+----------+----------+----------+
 |                    | Integral | Rational |   Real   | Complex  |  Number  |
 +--------------------+----------+----------+----------+----------+----------+
-| int                |   yes    |   yes    |   yes    |   yes    |   yes    |
-| fractions.Fraction |          |   yes    |   yes    |   yes    |   yes    |
-| float              |          |          |   yes    |   yes    |   yes    |
-| complex            |          |          |          |   yes    |   yes    |
-| decimal.Decimal    |          |          |          |          |   yes    |
+| int                |   Yes    |   Yes    |   Yes    |   Yes    |   Yes    |
+| fractions.Fraction |          |   Yes    |   Yes    |   Yes    |   Yes    |
+| float              |          |          |   Yes    |   Yes    |   Yes    |
+| complex            |          |          |          |   Yes    |   Yes    |
+| decimal.Decimal    |          |          |          |          |   Yes    |
 +--------------------+----------+----------+----------+----------+----------+
 

#String

<str>  = <str>.strip()                       # Strips all whitespace characters from both ends.
@@ -445,11 +445,11 @@ to_exclusive   = <range>.stop
 

Property Methods

+---------------+----------+----------+----------+----------+----------+
 |               | [ !#$%…] | [a-zA-Z] |  [¼½¾]   |  [²³¹]   |  [0-9]   |
 +---------------+----------+----------+----------+----------+----------+
-| isprintable() |   yes    |   yes    |   yes    |   yes    |   yes    |
-| isalnum()     |          |   yes    |   yes    |   yes    |   yes    |
-| isnumeric()   |          |          |   yes    |   yes    |   yes    |
-| isdigit()     |          |          |          |   yes    |   yes    |
-| isdecimal()   |          |          |          |          |   yes    |
+| isprintable() |   Yes    |   Yes    |   Yes    |   Yes    |   Yes    |
+| isalnum()     |          |   Yes    |   Yes    |   Yes    |   Yes    |
+| isnumeric()   |          |          |   Yes    |   Yes    |   Yes    |
+| isdigit()     |          |          |          |   Yes    |   Yes    |
+| isdecimal()   |          |          |          |          |   Yes    |
 +---------------+----------+----------+----------+----------+----------+
 
@@ -1209,13 +1209,13 @@ Hello World!

Table of required and automatically available special methods:

+------------+------------+------------+------------+--------------+
 |            |  Iterable  | Collection |  Sequence  | abc.Sequence |
 +------------+------------+------------+------------+--------------+
-| iter()     |    REQ     |    REQ     |    yes     |     yes      |
-| contains() |    yes     |    yes     |    yes     |     yes      |
+| iter()     |    REQ     |    REQ     |    Yes     |     Yes      |
+| contains() |    Yes     |    Yes     |    Yes     |     Yes      |
 | len()      |            |    REQ     |    REQ     |     REQ      |
 | getitem()  |            |            |    REQ     |     REQ      |
-| reversed() |            |            |    yes     |     yes      |
-| index()    |            |            |            |     yes      |
-| count()    |            |            |            |     yes      |
+| reversed() |            |            |    Yes     |     Yes      |
+| index()    |            |            |            |     Yes      |
+| count()    |            |            |            |     Yes      |
 +------------+------------+------------+------------+--------------+