[Python-Dev] Exception masking/chaining
Guido van Rossum
guido@python.org
Thu, 12 Jun 2003 14:04:27 -0400
> >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?
I very much doubt that this worked in any version of Python 2.2 or
later.
--Guido van Rossum (home page: http://www.python.org/~guido/)