On Jul 2, 10:13 am, Bruno Desthuilliers <bruno.
[EMAIL PROTECTED]> wrote:
> Nope. The wrapping happens at lookup time, thru the descriptor protocol
> (the same thing that gives support for properties).

Aha, I should read up on that.

> Help on built-in function dir in module __builtin__:

So, the dir function is a little more helpful than I thaught. I
checked instance.__dict__ now instead of dir(instance). No methods.
It's getting clearer. Thank you.

I think you've provided me with a good reason for class instances to
delegate attribute references to the class if class instance doesn't
contain the attribute. Diez, Gary, Bruno; Thanks for your help.

/Henrik
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to