Where I was migrating source in Python using 2to3
if not self.thread.is_alive():
I got an error at the branch.
After processing
In 2, False is returned without any problem.
In 3, for some reason, the following error occurs instead of False. .. ..
Exception has occurred: TypeError
'bool' object is not callable
The cause was that I had declared self._stop = False in def __init __.
I just wrote to set self._stop = True as the process of ʻexcept KeyboardInterrupt:, so it should be immutable in run ()`. .. ..
Although it was resolved, it was put on hold because the detailed cause was not understood.
If anyone can understand it, please let me know.
Recommended Posts