metaclass ???
Mike C. Fletcher
mcfletch at rogers.com
Wed Aug 18 09:58:11 EDT 2004
BruceKL WhoH wrote:
>Hi,
> I have just read David Mertz's Metaclass programming in Python,but I'm still confused.
>can someone show me an example to explain when metaclass is needed?
>
>
In large part this is the question that my PyCon presentation was trying
to explore. If you're interested, you can find the presentation and
sample code here:
http://www.vrplumber.com/programming/
> I think metaclass can be treated as a class factory,but how to specify the class generated? For example:
>
>
See particularly the metainitialisation.py sample code for the
presentation, which does approximately what I think you're trying to do
with your example.
HTH,
Mike
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
More information about the Python-list
mailing list