Metaclass question

Bojiro Kafir Tsava kafir at nonprophet.org
Wed Mar 12 19:43:23 CET 2003


I need to achieve transparent import/instantiation of classes and modules.

Here's a summary

When I do:

import me.my.module.MyClass

should result in creation of a new python class "me.my.module.MyClass" which
has a constructor:

class MyClass:
    def __init__(self, *args):
        self.extObj = extensionmodule.new(xxArg1, "MyClass")






More information about the Python-list mailing list