[pygtk] gobject & metaclasses

Joel Hedlund yohell at ifm.liu.se
Mon Oct 27 19:13:27 WST 2008


Alessandro Dentella wrote:
> What does this mean and what should I do instead?

I'm not sure how much this applies to you, but one really sound piece of 
advice I got off the comp.lang.python newsgroup is that if you're trying 
to solve a problem using metaclasses, you're probably doing it wrong.
Most problems have lots better solutions than resorting to metaclass 
black magic.

Or in the words of Tim Peters:
"Metaclasses are deeper magic than 99% of users should ever worry about. 
If you wonder whether you need them, you don't."

/Joel


More information about the pygtk mailing list