On Mon, Oct 17, 2005, Guido van Rossum wrote: > > If an argument is a string, it should be a method name, and the method > is looked up by that name each time the property is used. Because this > is late binding, it can be put before the method definitions, and a > subclass can override the methods. Example: > > class C: > foo = property('getFoo', 'setFoo', None, 'the foo property')
+1 The only other alternative is to introduce some kind of block. This is a good solution that is not particularly intrusive; it leaves the door open to a well-designed block structure later on. The one niggle I have is that it's going to be a little unwieldy to explain, but people who create properties really ought to understand Python well enough to deal with it. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." --Red Adair _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com