[issue14658] Overwriting dict.__getattr__ is inconsistent

2012-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset e3eda2d91e93 by Benjamin Peterson in branch '2.7': don't use a slot wrapper from a different special method (closes #14658) http://hg.python.org/cpython/rev/e3eda2d91e93 -- ___ Python tracker

[issue14658] Overwriting dict.__getattr__ is inconsistent

2012-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 971865f12377 by Benjamin Peterson in branch '3.2': don't use a slot wrapper from a different special method (closes #14658) http://hg.python.org/cpython/rev/971865f12377 New changeset 0c1c8f8955d8 by Benjamin Peterson in branch 'default': merge 3.2

[issue14658] Overwriting dict.__getattr__ is inconsistent

2012-04-24 Thread Mark Shannon
Changes by Mark Shannon : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14658] Overwriting dict.__getattr__ is inconsistent

2012-04-24 Thread Anthony Kong
Changes by Anthony Kong : -- nosy: +Anthony.Kong ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14658] Overwriting dict.__getattr__ is inconsistent

2012-04-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: It's a CPython bug. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue14658] Overwriting dict.__getattr__ is inconsistent

2012-04-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue14658] Overwriting dict.__getattr__ is inconsistent

2012-04-23 Thread Albert Zeyer
New submission from Albert Zeyer : ``` class Foo1(dict): def __getattr__(self, key): return self[key] def __setattr__(self, key, value): self[key] = value class Foo2(dict): __getattr__ = dict.__getitem__ __setattr__ = dict.__setitem__ o1 = Foo1() o1.x = 42 print(o1, o1.x) o2 =