On Mon, Oct 27, 2008 at 11:13:27AM +0100, Joel Hedlund wrote:
> 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."

Nevertheless metaclasses are used in many situations. Django and Sqlalchemy
use them in declarative syntax for which is great.

Anyhow I solved using GObjectMeta followinga hint oon python list and it
works.

thanks
sandro
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to