Descriptor puzzlement

Francis Avila francisgavila at yahoo.com
Thu Jan 8 17:48:41 CET 2004


Mirko Zeibig wrote in message ...
>John Roth said the following on 01/08/2004 01:34 PM:
>Hm, I don't know __set__ and __get__, there are __getattr__ (or
>__getattribute__) and __setattr__ for dynamically assigning attributes.
>Or take a look at properties
>(http://www.python.org/2.2/descrintro.html#property)

Properties are just a wrapper/interface/application of/to descriptors (whose
protocol involves __set__ and __get__).
http://users.rcn.com/python/download/Descriptor.htm for details.
--
Francis Avila




More information about the Python-list mailing list