Author alexandre.vassalotti
Recipients ajaksu2, alexandre.vassalotti, msyang, pitrou, terry.reedy
Date 2011-12-06.03:35:10
SpamBayes Score 2.72269e-07
Marked as misclassified No
Message-id <>
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):
            return self[name]
        except KeyError:
            return dict.__getattribute__(self, name)
Date User Action Args
2011-12-06 03:35:11alexandre.vassalottisetrecipients: + alexandre.vassalotti, terry.reedy, pitrou, ajaksu2, msyang
2011-12-06 03:35:11alexandre.vassalottisetmessageid: <>
2011-12-06 03:35:10alexandre.vassalottilinkissue3635 messages
2011-12-06 03:35:10alexandre.vassalotticreate