Aha! Thanks, Jeff. I'd heard about metaclasses, but never really seen them
used. Your example was very helpful.

This is somewhere that I would personally use a metaclass. That way,
> if you define more subclasses of Message, you're not limited to doing
> so in that single module.
>

Cheers,
Ben.


-- 
Ben Hoyt, http://benhoyt.com/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to