[New-bugs-announce] [issue8749] Cruft in object.c: PyObject_GenericGetAttr

Yaniv Aknin report at bugs.python.org
Tue May 18 14:06:29 CEST 2010

New submission from Yaniv Aknin <yaniv.aknin at gmail.com>:

While reading the source I saw that recent py3k has this in Objects/object.c (reasonably recent trunk has it as well):

#if 0 /* XXX this is not quite _PyType_Lookup anymore */
    /* Inline _PyType_Lookup */
    { ... removed ...
    descr = _PyType_Lookup(tp, name);

This was commented out (on trunk, I assumed on py3k it was for the same reason) by amaury.forgeotdarc on revision 59943, when a patch to the real _PyType_Lookup was applied.

I think it can be safely removed.

components: Interpreter Core
messages: 105967
nosy: Yaniv.Aknin
priority: normal
severity: normal
status: open
title: Cruft in object.c: PyObject_GenericGetAttr
versions: Python 2.7, Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list