> > x= property(**x()) > > > > questions: > > 1: why doesn't there have to be a self in x()? > > x is not a "normal" class method. It is only used as a container to > hold the "real" methods which are returned in the locals() dictionary.
on a related note, if you're using Python 2.4 and newer, you can simplfy your code a bit by replacing the call to property() with a decorator for x, as in: @property def x(): : cheers, -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor