[issue14334] Crash: getattr(type, '__getattribute__')(type, type)

Amaury Forgeot d'Arc report at bugs.python.org
Fri Mar 16 16:09:13 CET 2012


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

well, on 2.6 and 2.7 the following has weird output and crashes:

def test(obj):
    try:
        type(obj).__getattribute__(obj, (1,))
    except AttributeError as e:
        print(e)
class C:
    pass
test(str)
test(C)
test(C())

----------
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14334>
_______________________________________


More information about the Python-bugs-list mailing list