I suppose that is more specific than the __import__ builtin. Classes have __build_class__. Functions don't have an equivalent in the global builtins.
Eric Snow wrote:I don't know what Twisted does, but I was thinking of
I was just thinking along those same lines. Sounds like twisted already does it. Does it amount to using a custom __import__?
an attribute called __moduleclass__ that works a bit
like the old __metaclass__ attribute.
Then you could do
class __moduleclass__:
... descriptor definitions go here ...
--
Greg
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
http://mail.python.org/mailman/listinfo/python-ideas