[Python-Dev] can we stop pretending _PyTyple_Lookup is internal?

Armin Rigo arigo at tunes.org
Mon Mar 14 14:13:39 CET 2005


Hi Michael,

> ... _PyType_Lookup ...

There has been discussions about copy_reg.py and at least one other place in
the standard library that needs this; it is an essential part of the
descriptor model of new-style classes.  In my opinion it should be made part
not only of the official C API but the Python one too, e.g. as a method of
'type' instances:  type(x).lookup('name')


Armin


More information about the Python-Dev mailing list