[Python-Dev] Exception masking/chaining

Phillip J. Eby pje@telecommunity.com
Thu, 12 Jun 2003 13:45:00 -0400


At 01:37 PM 6/12/03 -0400, Guido van Rossum wrote:

>The big problem is that it would require a major rewrite of the sys
>module, wouldn't it?

Under 2.2 this would be easy because you could just do 'sys.__class__ = 
MyNewSysClass'.  Can you still do that in 2.3 as long as 'MyNewSysClass' is 
a non-heap type with a compatible layout?