diff --git a/README.md b/README.md index f1dbbaa..f3077ae 100644 --- a/README.md +++ b/README.md @@ -2158,7 +2158,7 @@ with : # Enters the block by calling acq ``` * **Map() and as\_completed() also accept 'timeout'. It causes futures.TimeoutError when next() is called/blocking. Map() times from original call and as_completed() from first call to next(). As\_completed() fails if next() is called too late, even if thread finished on time.** * **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, and executor needs to be reachable via `'if __name__ == "__main__": ...'`.** +* **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, and all executors should only be reachable via `'if __name__ == "__main__": ...'`.** Operator diff --git a/index.html b/index.html index 85351f7..912273e 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -1772,7 +1772,7 @@ CompletedProcess(args=['bc', pickable, queues must be sent using executor's 'initargs' and 'initializer' parameters, and executor needs to be reachable via 'if __name__ == "__main__": ...'. +
  • ProcessPoolExecutor provides true parallelism but: everything sent to/from workers must be pickable, queues must be sent using executor's 'initargs' and 'initializer' parameters, and all executors should only be reachable via 'if __name__ == "__main__": ...'.
  • #Operator

    Module of functions that provide the functionality of operators. Functions are ordered by operator precedence, starting with least binding.

    import operator as op
     <bool> = op.not_(<obj>)                                        # or, and, not (or/and missing)
    @@ -2931,7 +2931,7 @@ $ deactivate                  # Deactivates the activ
      
     
       
     
    diff --git a/pdf/remove_links.py b/pdf/remove_links.py
    index 72dcc50..6fe342a 100755
    --- a/pdf/remove_links.py
    +++ b/pdf/remove_links.py
    @@ -24,7 +24,7 @@ MATCHES = {
         'To print the spreadsheet to the console use Tabulate library.': 'To print the spreadsheet to the console use Tabulate library (p. 34).',
         'For XML and binary Excel files (xlsx, xlsm and xlsb) use Pandas library.': 'For XML and binary Excel files (xlsx, xlsm and xlsb) use Pandas library (p. 46).',
         'Bools will be stored and returned as ints and dates as ISO formatted strings.': 'Bools will be stored and returned as ints and dates as ISO formatted strings (p. 9).',
    -    'ProcessPoolExecutor provides true parallelism but: everything sent to/from workers must be pickable, queues must be sent using executor\'s \'initargs\' and \'initializer\' parameters, and executor needs to be reachable via \'if __name__ == "__main__": ...\'.': 'ProcessPoolExecutor provides true parallelism but: everything sent to/from workers must be pickable, queues must be sent using executor\'s \'initargs\' and \'initializer\' parameters, and executor needs to be reachable via \'if __name__ == "__main__": ...\'.',
    +    'ProcessPoolExecutor provides true parallelism but: everything sent to/from workers must be pickable, queues must be sent using executor\'s \'initargs\' and \'initializer\' parameters, and all executors should only be reachable via \'if __name__ == "__main__": ...\'.': 'ProcessPoolExecutor provides true parallelism but: everything sent to/from workers must be pickable, queues must be sent using executor\'s \'initargs\' and \'initializer\' parameters, and all executors should only be reachable via \'if __name__ == "__main__": ...\'.',
         'Asyncio module also provides its own Queue, Event, Lock and Semaphore classes.': 'Asyncio module also provides its own Queue, Event, Lock and Semaphore classes (p. 30).',
         'Install a WSGI server like Waitress and a HTTP server such as Nginx for better security.': 'Install a WSGI server like Waitress and a HTTP server such as Nginx for better security.',
         'The "latest and greatest" profiler that can also monitor GPU usage is called Scalene.': 'The "latest and greatest" profiler that can also monitor GPU usage is called Scalene.',