[Python-Dev] Calling a builtin from C code; PEP 3101 format() builtin

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Feb 15 00:01:16 CET 2008


Eric Smith wrote:

> 1: exposing builtin_format(), probably giving it another name 
> (PyObject_Format?) and moving it somewhere other than bltinmodule.c.

PyObject_Format sounds more like an API for invoking the
__format__ lookup mechanism. Maybe something like
PyObject_DefaultFormat would be better.

--
Greg


More information about the Python-Dev mailing list