Re: [Tutor] __getattribute__

2012-02-03 Thread Steven D'Aprano
Alan Gauld wrote: On 04/02/12 00:30, Stayvoid wrote: Could you provide some examples (easy and hard ones) and comments on the topic? I'm trying to understand how this thing works. Commenting on the topic... It's not one most beginners(*) should be worrying about you rarely need to use it. B

Re: [Tutor] __getattribute__

2012-02-03 Thread Steven D'Aprano
Stayvoid wrote: Hi! Could you provide some examples (easy and hard ones) and comments on the topic? I'm trying to understand how this thing works. When you do an attribute lookup on an object, say obj.attr, Python uses something like a search path to find the attribute: it tries various thing

Re: [Tutor] __getattribute__

2012-02-03 Thread Alan Gauld
On 04/02/12 00:30, Stayvoid wrote: Could you provide some examples (easy and hard ones) and comments on the topic? I'm trying to understand how this thing works. Commenting on the topic... It's not one most beginners(*) should be worrying about you rarely need to use it. But its slightly easi

[Tutor] __getattribute__

2012-02-03 Thread Stayvoid
Hi! Could you provide some examples (easy and hard ones) and comments on the topic? I'm trying to understand how this thing works. Cheers. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mai

Re: [Tutor] __getattribute__ instead of Mixing in and Mixing out classes in python

2008-08-01 Thread Tomaz Bevec
Thanks for your suggestion, Kent. I've looked into it a little bit and I think its probably the right way to go. --- On Thu, 7/31/08, Kent Johnson <[EMAIL PROTECTED]> wrote: > From: Kent Johnson <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Mixing in and Mixing out classes in python > To: [EMAI