From c9be4953255b0d6a1970c81a2779e0cb2b4c3f4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 7 Sep 2019 19:02:17 +0200 Subject: [PATCH] Type --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8457ada..c57b8ce 100644 --- a/README.md +++ b/README.md @@ -253,7 +253,7 @@ Type (, , ) ``` -#### Some types do not have builtin names, so they must be imported: +#### Some types do not have built-in names, so they must be imported: ```python from types import FunctionType, MethodType, LambdaType, GeneratorType ``` diff --git a/index.html b/index.html index 3d2caed..5053c14 100644 --- a/index.html +++ b/index.html @@ -385,7 +385,7 @@ to_exclusive = <range>.stop
>>> type('a'), 'a'.__class__, str
 (<class 'str'>, <class 'str'>, <class 'str'>)
 
-

Some types do not have builtin names, so they must be imported:

from types import FunctionType, MethodType, LambdaType, GeneratorType
+

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

from types import FunctionType, MethodType, LambdaType, GeneratorType
 

ABC

An abstract base class introduces virtual subclasses, that don’t inherit from it but are still recognized by isinstance() and issubclass().

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