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 <pre><code class="text language-text">+------------------+------------+------------+------------+ | | 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 | +------------------+------------+------------+------------+ </code></pre> <pre><code class="python language-python hljs"><span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> numbers <span class="hljs-keyword">import</span> Integral, Rational, Real, Complex, Number @@ -410,11 +410,11 @@ to_exclusive = <range>.stop <pre><code class="text language-text">+--------------------+----------+----------+----------+----------+----------+ | | 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 | +--------------------+----------+----------+----------+----------+----------+ </code></pre> <div><h2 id="string"><a href="#string" name="string">#</a>String</h2><pre><code class="python language-python hljs"><str> = <str>.strip() <span class="hljs-comment"># Strips all whitespace characters from both ends.</span> @@ -445,11 +445,11 @@ to_exclusive = <range>.stop <div><h3 id="propertymethods">Property Methods</h3><pre><code class="text language-text">+---------------+----------+----------+----------+----------+----------+ | | [ !#$%…] | [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 | +---------------+----------+----------+----------+----------+----------+ </code></pre></div> @@ -1209,13 +1209,13 @@ Hello World! <div><h4 id="tableofrequiredandautomaticallyavailablespecialmethods">Table of required and automatically available special methods:</h4><pre><code class="text language-text">+------------+------------+------------+------------+--------------+ | | 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 | +------------+------------+------------+------------+--------------+ </code></pre></div>