How to make a method into a property without using the @property decorator

Phlip phlip2005 at gmail.com
Sat Oct 23 13:25:11 EDT 2010


On Oct 23, 8:01 am, Peter Otten <__pete... at web.de> wrote:

> You may be better off with __getattr__().

Ayup, thanks. (Maybe I should have googled for "python equivalent of
ruby method_missing", hmm?;)



More information about the Python-list mailing list