Mercurial > cpython-lru_cache-weakref
diff Include/floatobject.h @ 47393:0da27fdf0192
Refactor and clean up str.format() code (and helpers) in advance of optimizations.
| author | Eric Smith <eric@trueblade.com> |
|---|---|
| date | Fri, 30 May 2008 18:10:19 +0000 |
| parents | b69f443ef480 |
| children | c57d1e954d93 |
line wrap: on
line diff
--- a/Include/floatobject.h Fri May 30 12:05:02 2008 +0000 +++ b/Include/floatobject.h Fri May 30 18:10:19 2008 +0000 @@ -105,6 +105,12 @@ /* free list api */ PyAPI_FUNC(void) PyFloat_CompactFreeList(size_t *, size_t *, size_t *); +/* Format the object based on the format_spec, as defined in PEP 3101 + (Advanced String Formatting). */ +PyAPI_FUNC(PyObject *) _PyFloat_FormatAdvanced(PyObject *obj, + Py_UNICODE *format_spec, + Py_ssize_t format_spec_len); + #ifdef __cplusplus } #endif
