What's better about Ruby than Python?
Alex Martelli
aleax at aleax.it
Thu Aug 21 02:30:07 EDT 2003
Andrew Dalke wrote:
...
> (Need to use the function instead of a class with __call__
> so that the method gets bound correctly. And I believe
You could use a class if its instances where descriptors, i.e.
supported __get__ appropriately -- that's basically what
functions do nowadays. See Raymond Hettinger's HOWTO
on descriptors -- a *wonderful* treatment of the subject.
Alex
More information about the Python-list
mailing list