Alexandre Vassalotti <alexan...@peadrop.com> added the comment:

I don't think it is a bug.

The posted code completely breaks the expected behavior of __getattribute__. 
With a such implementation, there is nothing we can do with this object as we 
cannot introspect it.

Use the following if you really need this kind of behaviour:

class E(dict):
    def __getattribute__(self,name):
        try:
            return self[name]
        except KeyError:
            return dict.__getattribute__(self, name)

----------
resolution:  -> works for me
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue3635>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to