terminable_threadProvides a subclass of Thread with facilities to raise an exception in the thread or terminate the thre... | |
Download |
terminable_thread Ranking & Summary
Advertisement
- License:
- Freely Distributable
- Publisher Name:
- Ted Tibbetts
- Publisher web site:
- http://github.com/intuited/
terminable_thread Tags
terminable_thread Description
Provides a subclass of Thread with facilities to raise an exception in the thread or terminate the thread from another thread terminable_thread is a library that provides a subclass of threading.Thread, adding the facility to raise exceptions in the context of the given thread.This facility is incorporated in the terminable_thread.Thread methods raise_exc, which raises an arbitrary exception, and terminate, which raises SystemExit.This is not done in an entirely robust manner, and there may be unreported issues with it.It uses the unexposed PyThreadState_SetAsyncExc function (via ctypes) to raise an exception for the given thread. Requirements: · Python
terminable_thread Related Software