Message128131
I agree with your solution. Unfortunately, I do not know how you would redefine ThreadError to extend RuntimeError in a C extension.
_thread.error is created line 741 in trunk/Modules/threadmodule.c:
ThreadError = PyErr_NewException("thread.error", NULL, NULL);
dummy_thread.error is created lin 21 in trunk/Lib/dummy_thread.py:
class error(Exception):
...
Changing this to RuntimeException is trivial.
I don't think there are other implementations of threading in the Python source but I'd appreciate if someone more familiar with the interpreter could confirm. |
|
Date |
User |
Action |
Args |
2011-02-07 15:55:47 | aymeric.augustin | set | recipients:
+ aymeric.augustin, gregory.p.smith, pitrou |
2011-02-07 15:55:47 | aymeric.augustin | set | messageid: <1297094147.88.0.0267877269744.issue11140@psf.upfronthosting.co.za> |
2011-02-07 15:55:47 | aymeric.augustin | link | issue11140 messages |
2011-02-07 15:55:47 | aymeric.augustin | create | |
|