Implementing Descriptors

The following methods only apply when an instance of the class containing the method (a so-called descriptor class) appears in the class dictionary of another new-style class, known as the owner class. In the examples below, the attribute refers to the attribute whose name is the key of the property in the owner class’ __dict__. Descriptors can only be implemented as new-style classes themselves.

 

Comment:

Move this to [[interface-descriptor]] ?

Posted by infogami

A Django site. this page was rendered by a django application in 0.02s 2008-10-13 00:21:38.820274. hosted by webfaction.