[Python-Dev] Adding __format__ to classic classes

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Feb 14 23:36:38 CET 2008


Eric Smith wrote:
> Are you saying I should call _PyType_Lookup first?

No, I think he's saying that you don't need to call
_PyType_Lookup at all, because anything that it could
find will also be found by PyObject_GetAttr.

So just call PyObject_GetAttr and it should Just Work.

--
Greg


More information about the Python-Dev mailing list