Re: [Python-Dev] PEP 447: hooking into super() attribute resolution

2013-07-15 Thread Guido van Rossum
On Mon, Jul 15, 2013 at 9:56 AM, Ronald Oussoren wrote: > > On 15 Jul, 2013, at 18:49, Guido van Rossum wrote: >> >> >>> A major open issue: the __locallookup__ method could also be used for >>> normal attribute resolution, but that probably causes issues with attribute >>> caching (see the PEP

Re: [Python-Dev] PEP 447: hooking into super() attribute resolution

2013-07-15 Thread Ronald Oussoren
On 15 Jul, 2013, at 18:49, Guido van Rossum wrote: > > >> A major open issue: the __locallookup__ method could also be used for normal >> attribute resolution, but that probably causes issues with attribute caching >> (see the PEP for details). I haven't worked out yet if it is worthwhile to

Re: [Python-Dev] PEP 447: hooking into super() attribute resolution

2013-07-15 Thread Guido van Rossum
On Mon, Jul 15, 2013 at 8:12 AM, Ronald Oussoren wrote: > I've posted a new update of my proposal to add a way to override the > attribute resolution proces by super(). I've rewritten the PEP and > implementation based on feedback by Steve Dower. > > In the current edition of the proposal the ho

[Python-Dev] PEP 447: hooking into super() attribute resolution

2013-07-15 Thread Ronald Oussoren
Hi, I've posted a new update of my proposal to add a way to override the attribute resolution proces by super(). I've rewritten the PEP and implementation based on feedback by Steve Dower. In the current edition of the proposal the hook is a method on the type, defined in a metaclass for types