"Gregory, Matthew" <matt.greg...@oregonstate.edu> wrote
class PositiveX(object): def __init__(self): @property def x(self): @x.setter def x(self, val):
I don't use properties in Python very often (hardly ever in fact) and I've never used @setter so there may be naming requirements I'm not aware of. But in general I'd avoid having two methods with the same name.
Try renaming the setter to setX() or somesuch and see if you get the same error.
Just a thought. Alan G. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor