@Larry
>     "@property" 375 hits
>     "def __getattr__" 28 hits
I don't think it is fair to compare occurrences of __getattr__ vs
occurrences of @property,
since in the first case one would use a single __getattr__ per class, while
in the second case
@property is required for every attribute.

@Guido
> I'm still poindering this. I am far from decided about whether it's
better to ...
The decision is up to you, I just wanted to bring an idea that is both
simpler and
more performance efficient.

--
Ivan
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to