[Python-3000] threading, part 2 (original) (raw)
Guido van Rossum guido at python.org
Wed Aug 16 02:40:29 CEST 2006
- Previous message: [Python-3000] threading, part 2
- Next message: [Python-3000] threading, part 2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 8/14/06, Georg Brandl <g.brandl at gmx.net> wrote:
Guido van Rossum wrote: > On 8/11/06, tomer filiba <tomerfiliba at gmail.com> wrote: >> i mailed this to several people separately, but then i thought it could >> benefit the entire group: >> >> http://sebulba.wikispaces.com/recipe+thread2 >> >> it's an implementation of the proposed " thread.raiseexc", through an extension >> to the threading.Thread class. you can test it for yourself; if it proves useful, >> it should be exposed as thread.raiseexc in the stdlib (instead of the ctypes >> hack)... and of course it should be reflected in threading.Thread as welll. > > Cool. Question: what's the problem with raising exception instances? > Especially in the light of my proposal to use > > raise SomeException(42) > > in preference over (and perhaps exclusively instead of) > > raise SomeException, 42 > > in Py3k. The latter IMO is a relic from the days of string exceptions > which are as numbered as they come. :-)
I think this is the answer: http://mail.python.org/pipermail/python-dev/2006-August/068165.html
Hopefully we can fix this in 2.6 or 3.0.
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-3000] threading, part 2
- Next message: [Python-3000] threading, part 2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]