diff --git a/README.md b/README.md index 5868e70..8e9d64b 100644 --- a/README.md +++ b/README.md @@ -1456,13 +1456,13 @@ BaseException +-- MemoryError # Out of memory. Could be too late to start deleting vars. +-- 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/PermissionError (see #Open). + +-- OSError # Errors such as FileExistsError/TimeoutError (see #Open). | +-- ConnectionError # Errors such as BrokenPipeError/ConnectionAbortedError. +-- RuntimeError # Raised by errors that don't fall into other categories. | +-- NotImplementedEr… # Can be raised by abstract methods or by unfinished code. | +-- RecursionError # Raised when the maximum recursion depth is exceeded. - +-- StopIteration # Raised by next() when run on an empty iterator. - +-- TypeError # Raised when an argument is of the wrong type. + +-- StopIteration # Raised when an empty iterator is passed to next(). + +-- TypeError # When an argument of the wrong type is passed to function. +-- ValueError # When argument has the right type but inappropriate value. ``` @@ -2151,7 +2151,7 @@ with : # Enters the block by calling acq = .cancel() # Cancels or returns False if running/finished. = as_completed() # Next() waits for next completed Future. ``` -* **Map() and as\_completed() also accept 'timeout' arg. that causes TimeoutError when next() is called. Map() times from the original call, while as\_completed() from the call to next().** +* **Map() and as\_completed() also accept 'timeout' argument. It causes TimeoutError when next() is called if result isn't available in 'timeout' seconds from the original call.** * **Exceptions that happen inside threads are raised when next() is called on map's iterator or when result() is called on a Future. Its exception() method returns exception or None.** * **ProcessPoolExecutor provides true parallelism, but everything sent to/from workers must be [pickable](#pickle). Queues must be sent using executor's 'initargs' and 'initializer' parameters.** diff --git a/index.html b/index.html index 3f312c2..e7add9d 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -1241,13 +1241,13 @@ error_msg = ''.join(traceback.format_exception( ├── MemoryError # Out of memory. Could be too late to start deleting vars. ├── 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/PermissionError (see #Open). + ├── OSError # Errors such as FileExistsError/TimeoutError (see #Open). │ └── ConnectionError # Errors such as BrokenPipeError/ConnectionAbortedError. ├── RuntimeError # Raised by errors that don't fall into other categories. │ ├── NotImplementedEr… # Can be raised by abstract methods or by unfinished code. │ └── RecursionError # Raised when the maximum recursion depth is exceeded. - ├── StopIteration # Raised by next() when run on an empty iterator. - ├── TypeError # Raised when an argument is of the wrong type. + ├── StopIteration # Raised when an empty iterator is passed to next(). + ├── TypeError # When an argument of the wrong type is passed to function. └── ValueError # When argument has the right type but inappropriate value. @@ -1774,7 +1774,7 @@ CompletedProcess(args=['bc', # Next() waits for next completed Future.
    -
  • Map() and as_completed() also accept 'timeout' arg. that causes TimeoutError when next() is called. Map() times from the original call, while as_completed() from the call to next().
  • +
  • Map() and as_completed() also accept 'timeout' argument. It causes TimeoutError when next() is called if result isn't available in 'timeout' seconds from the original call.
  • Exceptions that happen inside threads are raised when next() is called on map's iterator or when result() is called on a Future. Its exception() method returns exception or None.
  • ProcessPoolExecutor provides true parallelism, but everything sent to/from workers must be pickable. Queues must be sent using executor's 'initargs' and 'initializer' parameters.
@@ -2932,7 +2932,7 @@ $ deactivate # Deactivates the activ
- +
diff --git a/parse.js b/parse.js index b40f8c0..766d66e 100755 --- a/parse.js +++ b/parse.js @@ -439,13 +439,13 @@ const DIAGRAM_7_B = " ├── MemoryError # Out of memory. Could be too late to start deleting vars.\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/PermissionError (see #Open).\n" + + " ├── OSError # Errors such as FileExistsError/TimeoutError (see #Open).\n" + " │ └── ConnectionError # Errors such as BrokenPipeError/ConnectionAbortedError.\n" + " ├── RuntimeError # Raised by errors that don't fall into other categories.\n" + " │ ├── NotImplementedEr… # Can be raised by abstract methods or by unfinished code.\n" + " │ └── RecursionError # Raised when the maximum recursion depth is exceeded.\n" + - " ├── StopIteration # Raised by next() when run on an empty iterator.\n" + - " ├── TypeError # Raised when an argument is of the wrong type.\n" + + " ├── StopIteration # Raised when an empty iterator is passed to next().\n" + + " ├── TypeError # When an argument of the wrong type is passed to function.\n" + " └── ValueError # When argument has the right type but inappropriate value.\n"; const DIAGRAM_8_A =