Message9303
Logged In: YES
user_id=1179122
This caused me an hour of debugging a few nights ago. When
using unified types, it's very confusing to find that not
only does Exception not follow new-style object semantics,
but it *can't*. Doing the obvious hack:
class MyException (Exception, object):
pass
does not work! The interpreter (2.3) refuses to let you
raise a unified-type object. And if you subclass
exclusively from Exception, type(obj) returns 'instance'
instead of the class (due to being an old-style object).
Please fix this for 2.4!
|
|
Date |
User |
Action |
Args |
2007-08-23 13:59:16 | admin | link | issue518846 messages |
2007-08-23 13:59:16 | admin | create | |
|