Matěj Chmel

Results 6 issues of Matěj Chmel

When running script [Chapter19/example3.py](https://github.com/PacktPublishing/Mastering-Concurrency-in-Python/blob/1fa53540d9d543b472dd67392b8eeecbfa81a754/Chapter19/example3.py) a NameError is raised: ```none scheduler.shutdown() NameError: name 'scheduler' is not defined ``` The problem can be fixed by indenting the [line 27](https://github.com/PacktPublishing/Mastering-Concurrency-in-Python/blob/1fa53540d9d543b472dd67392b8eeecbfa81a754/Chapter19/example3.py#L27) under the main...

Package **concurrencytest** that is imported in [Chapter19/example7.py](https://github.com/PacktPublishing/Mastering-Concurrency-in-Python/blob/1fa53540d9d543b472dd67392b8eeecbfa81a754/Chapter19/example7.py#L4) can't be used on Windows, because the default interpreter is missing implementation of the `os.fork` function. When running the example under Windows the...

When running the file [Chapter05/example6.py](https://github.com/PacktPublishing/Mastering-Concurrency-in-Python/blob/1fa53540d9d543b472dd67392b8eeecbfa81a754/Chapter05/example6.py) in Python 3.9 or newer, this error is raised: ```none AttributeError: 'MyThread' object has no attribute 'isAlive'. Did you mean: 'is_alive'? ``` This can be...

When running the echo server example from chapter 10 under Python 3.10 or newer a TypeError is raised: ```none TypeError: BaseEventLoop.create_server() got an unexpected keyword argument 'loop' ``` The solution...

Pycaches are built for specific Python version so it doesn't make much sense to commit them if the end-user will be using a different Python version. [pycache in chapter 3](https://github.com/PacktPublishing/Mastering-Concurrency-in-Python/blob/1fa53540d9d543b472dd67392b8eeecbfa81a754/Chapter03/__pycache__/my_thread.cpython-36.pyc)...

When running some scripts on Windows, a following RuntimeError is raised: ```none raise RuntimeError(''' RuntimeError: An attempt has been made to start a new process before the current process has...