summaryrefslogtreecommitdiffstats
path: root/Include/floatobject.h
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2008-05-30 18:10:19 (GMT)
committerEric Smith <eric@trueblade.com>2008-05-30 18:10:19 (GMT)
commit4a7d76ddb51422e2adb0fb56afa5b82162837e52 (patch)
tree266a1c326d040ce45be22c4c785edec2f7f67f02 /Include/floatobject.h
parenteb2c964aeb0ab0e3e01560c955cab95f8e3b92c2 (diff)
downloadcpython-4a7d76ddb51422e2adb0fb56afa5b82162837e52.zip
cpython-4a7d76ddb51422e2adb0fb56afa5b82162837e52.tar.gz
cpython-4a7d76ddb51422e2adb0fb56afa5b82162837e52.tar.bz2
Refactor and clean up str.format() code (and helpers) in advance of optimizations.
Diffstat (limited to 'Include/floatobject.h')
-rw-r--r--Include/floatobject.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/floatobject.h b/Include/floatobject.h
index 2021313..650d544 100644
--- a/Include/floatobject.h
+++ b/Include/floatobject.h
@@ -105,6 +105,12 @@ PyAPI_FUNC(double) _PyFloat_Unpack8(const unsigned char *p, int le);
/* 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