I was just thinking along those same lines. Sounds like twisted already does it. Does it amount to using a custom __import__?
Eric Snow wrote:What would be useful from time to time is a more straightforward
I am sure there is some convoluted way to make it work, but it would not nearly be worth it for what we would get out of it.
way of getting a module that's based on a subclass of the
built-in module class. While that's currently possible, it
requires some not-entirely-obvious hackery.
--
Greg
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
http://mail.python.org/mailman/listinfo/python-ideas