@apply Or is that too evil? Devin On Sun, Jul 24, 2011 at 7:48 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote: > You could use a class decorator to help with this. >> def instance(cls): > return cls() >> @instance > class foo(object): > x = 42 >> -- > Greg > _______________________________________________ > Python-ideas mailing list > Python-ideas at python.org > http://mail.python.org/mailman/listinfo/python-ideas >