[New-bugs-announce] [issue9756] Crash with custom __getattribute__

Florent Xicluna report at bugs.python.org
Fri Sep 3 14:13:04 CEST 2010

New submission from Florent Xicluna <florent.xicluna at gmail.com>:

I found this crash while playing with proxies (thanks haypo).

class MyClass(object):

    def __init__(self):
        self.pwn = None

    def __getattribute__(self, name):
        print('MyClass.__getattribute__(self, %r)' % name)
        return getattr('abc', name)

instance = MyClass()

components: Interpreter Core
messages: 115446
nosy: flox, haypo
priority: normal
severity: normal
stage: needs patch
status: open
title: Crash with custom __getattribute__
type: crash
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list