diff --git a/README.md b/README.md index 045d808..b4513ed 100644 --- a/README.md +++ b/README.md @@ -262,7 +262,7 @@ from types import FunctionType, MethodType, LambdaType, GeneratorType ``` ### Abstract Base Classes -**Each abstract base class specifies a set of virtual subclasses. This classes are then recognized by isinstance() and issubclass() as subclasses of the ABC, although they are really not.** +**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.** ```python >>> from collections.abc import Sequence, Collection, Iterable @@ -1458,7 +1458,7 @@ Exit ```python import sys sys.exit() # Exits with exit code 0 (success). -sys.exit() # Prints object to stderr and exits with 1. +sys.exit() # Prints to stderr and exits with 1. sys.exit() # Exits with passed exit code. ``` @@ -1476,7 +1476,7 @@ print(, ..., sep=' ', end='\n', file=sys.stdout, flush=False) from pprint import pprint pprint(, width=80, depth=None, compact=False, sort_dicts=True) ``` -* **Levels deeper than 'depth' get replaced with '...'.** +* **Levels deeper than 'depth' get replaced by '...'.** Input diff --git a/index.html b/index.html index 3db3d52..d4c6035 100644 --- a/index.html +++ b/index.html @@ -392,7 +392,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. This classes are then recognized by isinstance() and issubclass() as subclasses of the ABC, although they are really not.

>>> 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.

>>> from collections.abc import Sequence, Collection, Iterable
 >>> isinstance([1, 2, 3], Iterable)
 True
 
@@ -1361,7 +1361,7 @@ error_msg = traceback.format_exception(exc_type, <name>, <name>.__tr

#Exit

Exits the interpreter by raising SystemExit exception.

import sys
 sys.exit()                        # Exits with exit code 0 (success).
-sys.exit(<el>)                    # Prints object to stderr and exits with 1.
+sys.exit(<el>)                    # Prints to stderr and exits with 1.
 sys.exit(<int>)                   # Exits with passed exit code.
 
@@ -1378,7 +1378,7 @@ pprint(<collection>, width=80, depth=
    -
  • Levels deeper than 'depth' get replaced with '…'.
  • +
  • Levels deeper than 'depth' get replaced by '…'.

#Input

Reads a line from the user input or pipe if present.

<str> = input(prompt=None)