metaclass ???

Mike C. Fletcher mcfletch at
Wed Aug 18 15:58:11 CEST 2004

BruceKL WhoH wrote:

>     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:

>     I think metaclass can be treated as a class factory,but how to specify the class generated? For example:
See particularly the sample code for the
presentation, which does approximately what I think you're trying to do
with your example.


  Mike C. Fletcher
  Designer, VR Plumber, Coder

More information about the Python-list mailing list