Releases: bitranox/wrapt_timeout_decorator
PyPi initial release
PyPi initial release
added pickle_analyzer convenience function
added pickle_analyzer convenience function
100% Code Coverage, Windows and OSX Test, dec_hard_timeout for Windows
100% Code Coverage
Windows and OSX Test
new parameter "dec_hard_timeout" for windows
Refractored and Cleaned
Refractored and Cleaned
Fix Pickle detection again, more Tests, CodeCov combining
Final New Version 1.0.7
- pickle detection fixed
- added some tests
- codecov now correctly combining the coverage of all tests
Fix Pickle detection
- fix error on detection if the wrapped object is pickable
- drop python 2.6 support, since wrapt dropped it
use multiprocessing.pipe instead of queue
If we are not able to use signals, we need to spawn a new process.
This was done in the past by pickling the target function and put it on a queue -
now this is done with a half-duplex pipe.
- it is faster
- it probably can work on Amazon AWS, since there You must not use queues
automatic detection if we are in the mainthread
Signals can only be used in the main thread. If the decorator is running in a subthread,
we automatically disable signals.
Using multiprocess and dill
Now using multiprocess and dill instead of multiprocessing and pickle -
this makes the decorator more useful under windows, since dill can pickle much more objects then pickle itself.
dill can pickle the following standard types:
none, type, bool, int, long, float, complex, str, unicode,
tuple, list, dict, file, buffer, builtin,
both old and new style classes,
instances of old and new style classes,
set, frozenset, array, functions, exceptions
dill can also pickle more 'exotic' standard types:
functions with yields, nested functions, lambdas
cell, method, unboundmethod, module, code, methodwrapper,
dictproxy, methoddescriptor, getsetdescriptor, memberdescriptor,
wrapperdescriptor, xrange, slice,
notimplemented, ellipsis, quit
100% Code Coverage
100% Code Coverage