Re: [Python-Dev] __dict__ strangeness

2006-03-19 Thread Armin Rigo
Hi, On Sat, Mar 18, 2006 at 06:57:12PM +0100, Georg Brandl wrote: > >> >>> class D(object): > >> ... __dict__ = {} > >> ... > >> >>> d = D() > >> >>> d.a = 1 > >> >>> d.__dict__ > >> {} > >> >>> d.__dict__ = {} > >> >>> d.a > >> 1 > > > > Yep, that's the bug, fully reproducible in 2.3 and 2.4

Re: [Python-Dev] __dict__ strangeness

2006-03-18 Thread Georg Brandl
[moving to python-dev] Alex Martelli wrote: > Georg Brandl <[EMAIL PROTECTED]> wrote: > >> can someone please tell me that this is correct and why: > > IMHO, it is not correct: it is a Python bug (and it would be nice to fix > it in 2.5). Fine. Credits go to Michal Kwiatkowski for discovering t