diff options
author | Eric Smith <eric@trueblade.com> | 2008-05-30 18:10:04 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2008-05-30 18:10:04 (GMT) |
commit | dc13b79a384691ed966f760a58d73a1b835e7d6b (patch) | |
tree | 40aa36feea2e0ee23f41801a8959990914e3fc71 /Include/bytesobject.h | |
parent | 30fadc17990baf4005081d2cdcb8d3adc9c45a7a (diff) | |
download | cpython-dc13b79a384691ed966f760a58d73a1b835e7d6b.zip cpython-dc13b79a384691ed966f760a58d73a1b835e7d6b.tar.gz cpython-dc13b79a384691ed966f760a58d73a1b835e7d6b.tar.bz2 |
Refactor and clean up str.format() code (and helpers) in advance of optimizations.
Diffstat (limited to 'Include/bytesobject.h')
-rw-r--r-- | Include/bytesobject.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/bytesobject.h b/Include/bytesobject.h index 941577a..cb31da8 100644 --- a/Include/bytesobject.h +++ b/Include/bytesobject.h @@ -188,6 +188,12 @@ PyAPI_FUNC(int) _PyBytes_InsertThousandsGrouping(char *buffer, Py_ssize_t *count, int append_zero_char); +/* Format the object based on the format_spec, as defined in PEP 3101 + (Advanced String Formatting). */ +PyAPI_FUNC(PyObject *) _PyBytes_FormatAdvanced(PyObject *obj, + char *format_spec, + Py_ssize_t format_spec_len); + #ifdef __cplusplus } #endif |