Robert Nowotny
Robert Nowotny
Dear Graham, I try to archive that mypy passes - but it does not. The decorator itself works without Problems. Since I want to be python 3.6 compatible, I can...
Dear Graham, here my findings : You can type annotate a third party package with stub files, which I did for the decorator function of wrapt. - put a `wrapt.pyi`...
Since peter seems to be absent atm, You might try that one : https://github.com/bitranox/bitranox_coloredlogs
paolo, can You please merge that . It does not hurt. Just to be able to compile on windows, if the python interpreter is sitting on a path with a...
dear xixiao, timer signals can not be used in Windows at all. You might use this decorator with option use_signals=False, or You might use my fork - there the signals...
Dear Xixiao, try not to call if from __main__ - I will change the sample code accordingly. BTW, happy chinese new year so smt. like : ``` import time from...
You can already customize the exception message : @timeout(... ,exception_message='something') if You need to do that. But to keep the decorator generic, You should catch the Timeout Exception and there...
Dear Xiaxiao, the timeout decorator is using functools for wrapping the function --> see sourcecode: ``` # pnpnpn timeout decorator: from functools import wraps ``` we use wrapt, what is...
You use pnpnpn´s timeout decorator from here - so You need to put use_signals=False on windows, so: ``` @timeout(5, use_signals=False) def mytest(message): ... ``` my fork does that automatically, You...
can You please try the wrapt_timeout_decorator and tell me if You have the same problems with it - please let me know. https://github.com/bitranox/wrapt_timeout_decorator