Python descriptors

Aug 21, 2003 15:52 · 55 words · 1 minute read

Raymond Hettinger has written a How-To Guide for Descriptors which is a very good intro to the topic. I thought Python’s new staticmethod and property syntaxes were rather odd compared to Java’s way of doing it, but reading about the general purpose Descriptor mechanism makes it clearer. Looks like a very useful language feature indeed.