“Questions seeking debugging help (“Why isn’t this code working?”) must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself.” The desired behavior is to create an output file of scraped pages as per this working code (in non headless mode) and here’s the shortest code necessary to reproduce
Tag: threadpool
Multithreading updating with multiple windows in pyqt5
I’m trying to have a timer going that I can use to update values in multiple windows with pyqt5. What I have so far, the main window opens with buttons to open the other windows, but when I press either button, it crashes. The number of threads is printed out. I have also tried putting in each AnotherWindow(2) init function,
how do I use key word arguments with python multiprocessing pool apply_async
I’m trying to get to grips with pythons multiprocessing module, specifically the apply_async method of Pool. I’m trying to call a function with arguments and keyword arguments. If I call the function without kwargs it’s fine but when I try to add in a keyword argument I get: TypeError: apply_async() got an unexpected keyword argument ‘arg2’ Below is the test