From b281de2411d14813b5840f636485c7580151ff0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 14 Apr 2024 14:13:35 +0200 Subject: [PATCH] Regex, abc.Sequence --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cba74c3..7ec634c 100644 --- a/README.md +++ b/README.md @@ -360,7 +360,7 @@ import re ``` * **Raw string literals do not interpret escape sequences, thus enabling us to use regex-specific escape sequences that cause SyntaxWarning in normal string literals (since 3.12).** -* **Argument 'new' of re.sub() can be a function that accepts a Match object and returns a str.** +* **Argument 'new' of re.sub() can be a function that accepts Match object and returns a str.** * **Argument `'flags=re.IGNORECASE'` can be used with all functions.** * **Argument `'flags=re.MULTILINE'` makes `'^'` and `'$'` match the start/end of each line.** * **Argument `'flags=re.DOTALL'` makes `'.'` also accept the `'\n'`.** @@ -1318,7 +1318,7 @@ class MyAbcSequence(abc.Sequence): | count() | | | | Yes | +------------+------------+------------+------------+--------------+ ``` -* **Method iter() is required for `'isinstance(, abc.Iterable)'` to return True, however any object with getitem() will work just fine with any code expecting an iterable.** +* **Method iter() is required for `'isinstance(, abc.Iterable)'` to return True, however any object with getitem() will work with any code expecting an iterable.** * **Abstract base classes that generate missing methods when extended are: Sequence, MutableSequence, Set, MutableSet, Mapping and MutableMapping.** * **Names of their required methods are stored in `'.__abstractmethods__'`.** diff --git a/index.html b/index.html index c7e6c64..d95cfa8 100644 --- a/index.html +++ b/index.html @@ -336,7 +336,7 @@ Point(x=1, y=2
  • Raw string literals do not interpret escape sequences, thus enabling us to use regex-specific escape sequences that cause SyntaxWarning in normal string literals (since 3.12).
  • -
  • Argument 'new' of re.sub() can be a function that accepts a Match object and returns a str.
  • +
  • Argument 'new' of re.sub() can be a function that accepts Match object and returns a str.
  • Argument 'flags=re.IGNORECASE' can be used with all functions.
  • Argument 'flags=re.MULTILINE' makes '^' and '$' match the start/end of each line.
  • Argument 'flags=re.DOTALL' makes '.' also accept the '\n'.
  • @@ -1131,7 +1131,7 @@ Hello World!
      -
    • Method iter() is required for 'isinstance(<obj>, abc.Iterable)' to return True, however any object with getitem() will work just fine with any code expecting an iterable.
    • +
    • Method iter() is required for 'isinstance(<obj>, abc.Iterable)' to return True, however any object with getitem() will work with any code expecting an iterable.
    • Abstract base classes that generate missing methods when extended are: Sequence, MutableSequence, Set, MutableSet, Mapping and MutableMapping.
    • Names of their required methods are stored in '<abc>.__abstractmethods__'.