This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aymeric.augustin
Recipients aymeric.augustin, gregory.p.smith, pitrou
Date 2011-02-07.15:55:47
SpamBayes Score 0.00013123923
Marked as misclassified No
Message-id <1297094147.88.0.0267877269744.issue11140@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-02-07 15:55:47aymeric.augustinsetrecipients: + aymeric.augustin, gregory.p.smith, pitrou
2011-02-07 15:55:47aymeric.augustinsetmessageid: <1297094147.88.0.0267877269744.issue11140@psf.upfronthosting.co.za>
2011-02-07 15:55:47aymeric.augustinlinkissue11140 messages
2011-02-07 15:55:47aymeric.augustincreate