June 12, 2003
6:04 p.m.
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/)