diff --git a/README.md b/README.md index bdf5dbc..c0f04a0 100644 --- a/README.md +++ b/README.md @@ -1452,7 +1452,7 @@ BaseException +-- LookupError # Base class for errors when a collection can't find an item. | +-- IndexError # Raised when a sequence index is out of range. | +-- KeyError # Raised when a dictionary key or set element is missing. - +-- MemoryError # Out of memory. Could be too late to start deleting vars. + +-- MemoryError # Out of memory. May be too late to start deleting objects. +-- NameError # Raised when nonexistent name (variable/func/class) is used. | +-- UnboundLocalError # Raised when local name is used before it's being defined. +-- OSError # Errors such as FileExistsError/TimeoutError (see #Open). @@ -1515,7 +1515,7 @@ print(, ..., sep=' ', end='\n', file=sys.stdout, flush=False) from pprint import pprint pprint(, width=80, depth=None, compact=False, sort_dicts=True) ``` -* **Each item is printed on its own line if collection takes up more than 'width' characters.** +* **Each item is printed on its own line if collection exceeds 'width' characters.** * **Nested collections that are 'depth' levels deep get printed as '...'.** @@ -1601,7 +1601,7 @@ Open .write() # Writes a string or bytes object. .writelines() # Writes a coll. of strings or bytes objects. .flush() # Flushes write buffer. Runs every 4096/8192 B. -.close() # Closes the file after flushing. +.close() # Closes the file after flushing write buffer. ``` * **Methods do not add or strip trailing newlines, not even writelines().** diff --git a/index.html b/index.html index d355a87..51d364a 100644 --- a/index.html +++ b/index.html @@ -1237,7 +1237,7 @@ error_msg = ''.join(traceback.format_exception( ├── LookupError # Base class for errors when a collection can't find an item. │ ├── IndexError # Raised when a sequence index is out of range. │ └── KeyError # Raised when a dictionary key or set element is missing. - ├── MemoryError # Out of memory. Could be too late to start deleting vars. + ├── MemoryError # Out of memory. May be too late to start deleting objects. ├── NameError # Raised when nonexistent name (variable/func/class) is used. │ └── UnboundLocalError # Raised when local name is used before it's being defined. ├── OSError # Errors such as FileExistsError/TimeoutError (see #Open). @@ -1288,7 +1288,7 @@ pprint(<collection>, width=80, depth=
    -
  • Each item is printed on its own line if collection takes up more than 'width' characters.
  • +
  • Each item is printed on its own line if collection exceeds 'width' characters.
  • Nested collections that are 'depth' levels deep get printed as '…'.

#Input

<str> = input(prompt=None)
@@ -1361,7 +1361,7 @@ p.add_argument('<name>', type=<type>
 
<file>.write(<str/bytes>)           # Writes a string or bytes object.
 <file>.writelines(<collection>)     # Writes a coll. of strings or bytes objects.
 <file>.flush()                      # Flushes write buffer. Runs every 4096/8192 B.
-<file>.close()                      # Closes the file after flushing.
+<file>.close()                      # Closes the file after flushing write buffer.
 
  • Methods do not add or strip trailing newlines, not even writelines().
  • diff --git a/parse.js b/parse.js index 7ccf6e8..8c47a45 100755 --- a/parse.js +++ b/parse.js @@ -427,7 +427,7 @@ const DIAGRAM_7_B = " ├── LookupError # Base class for errors when a collection can't find an item.\n" + " │ ├── IndexError # Raised when a sequence index is out of range.\n" + " │ └── KeyError # Raised when a dictionary key or set element is missing.\n" + - " ├── MemoryError # Out of memory. Could be too late to start deleting vars.\n" + + " ├── MemoryError # Out of memory. May be too late to start deleting objects.\n" + " ├── NameError # Raised when nonexistent name (variable/func/class) is used.\n" + " │ └── UnboundLocalError # Raised when local name is used before it's being defined.\n" + " ├── OSError # Errors such as FileExistsError/TimeoutError (see #Open).\n" +