[Zope-dev] _getOb or __getattr__?

Chris Withers chrisw@nipltd.com
Tue, 27 Feb 2001 15:59:21 +0000


Hi,

I need a product with custom attribute getting code and so looked to the
BTreeFolder product for inspiration.

It implements both __getattr__ and _getOb which appear to do roughly the same
thing.

What's the difference?

Shane hints that __getattr__ is slower but allows acquisiton. Why is that?

TIA,

Chris