[issue9751] _PyInstance_Lookup() defeats its purpose

Armin Rigo report at bugs.python.org
Fri Sep 3 11:30:12 CEST 2010

New submission from Armin Rigo <arigo at users.sourceforge.net>:

_PyInstance_Lookup() is documented as follows:

    The point of this routine is that it never calls arbitrary Python
    code, so is always "safe":  all it does is dict lookups.

But of course dict lookups can call arbitrary Python code.  This function has no purpose, because it's not possible to be "safe".  I checked in a crasher:


components: Interpreter Core
messages: 115426
nosy: arigo
priority: low
severity: normal
stage: needs patch
status: open
title: _PyInstance_Lookup() defeats its purpose
type: crash
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list