From 06bcd0321e59ba1a94fae2b8b2c0efd0f1a02262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 21 Nov 2020 05:29:07 +0100 Subject: [PATCH] ABC, progress bar --- README.md | 4 ++-- index.html | 4 ++-- parse.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5504567..8120958 100644 --- a/README.md +++ b/README.md @@ -261,7 +261,7 @@ from types import FunctionType, MethodType, LambdaType, GeneratorType ``` ### Abstract Base Classes -**Each abstract base class specifies a set of virtual subclasses. These classes are then recognized by isinstance() and issubclass() as subclasses of the ABC, although they are really not. ABC can also manually decide whether or not a specific class is its virtual subclass.** +**Each abstract base class specifies a set of virtual subclasses. These classes are then recognized by isinstance() and issubclass() as subclasses of the ABC, although they are really not. ABC can also manually decide whether or not a specific class is its virtual subclass, usually based on which methods the class has implemented (Collection, Iterable).** ```python >>> from collections.abc import Sequence, Collection, Iterable @@ -2337,7 +2337,7 @@ Progress Bar >>> from time import sleep >>> for el in tqdm([1, 2, 3], desc='Processing'): ... sleep(1) -Processing: 100%|██████████████████| 3/3 [00:03<00:00, 1.00s/it] +Processing: 100%|████████████████████| 3/3 [00:03<00:00, 1.00s/it] ``` diff --git a/index.html b/index.html index c6f8276..6d09b8c 100644 --- a/index.html +++ b/index.html @@ -402,7 +402,7 @@ to_exclusive = <range>.stop

Some types do not have built-in names, so they must be imported:

from types import FunctionType, MethodType, LambdaType, GeneratorType
 
-

Abstract Base Classes

Each abstract base class specifies a set of virtual subclasses. These classes are then recognized by isinstance() and issubclass() as subclasses of the ABC, although they are really not. ABC can also manually decide whether or not a specific class is its virtual subclass.

>>> from collections.abc import Sequence, Collection, Iterable
+

Abstract Base Classes

Each abstract base class specifies a set of virtual subclasses. These classes are then recognized by isinstance() and issubclass() as subclasses of the ABC, although they are really not. ABC can also manually decide whether or not a specific class is its virtual subclass, usually based on which methods the class has implemented (Collection, Iterable).

>>> from collections.abc import Sequence, Collection, Iterable
 >>> isinstance([1, 2, 3], Iterable)
 True
 
@@ -2041,7 +2041,7 @@ curses.wrapper(main) >>> from time import sleep >>> for el in tqdm([1, 2, 3], desc='Processing'): ... sleep(1) -Processing: 100%|███████████████████| 3/3 [00:03<00:00, 1.00s/it] +Processing: 100%|████████████████████| 3/3 [00:03<00:00, 1.00s/it]
diff --git a/parse.js b/parse.js index b212172..5a85cb4 100755 --- a/parse.js +++ b/parse.js @@ -69,7 +69,7 @@ const PROGRESS_BAR = '>>> from time import sleep\n' + '>>> for el in tqdm([1, 2, 3], desc=\'Processing\'):\n' + '... sleep(1)\n' + - 'Processing: 100%|███████████████████| 3/3 [00:03<00:00, 1.00s/it]\n'; + 'Processing: 100%|████████████████████| 3/3 [00:03<00:00, 1.00s/it]\n'; const PYINSTALLER = '$ pip3 install pyinstaller\n' +