diff options
| author | Eric Smith <eric@trueblade.com> | 2008-05-30 18:10:19 +0000 |
|---|---|---|
| committer | Eric Smith <eric@trueblade.com> | 2008-05-30 18:10:19 +0000 |
| commit | 4a7d76ddb51422e2adb0fb56afa5b82162837e52 (patch) | |
| tree | 266a1c326d040ce45be22c4c785edec2f7f67f02 /Include/unicodeobject.h | |
| parent | eb2c964aeb0ab0e3e01560c955cab95f8e3b92c2 (diff) | |
| download | cpython-git-4a7d76ddb51422e2adb0fb56afa5b82162837e52.tar.gz | |
Refactor and clean up str.format() code (and helpers) in advance of optimizations.
Diffstat (limited to 'Include/unicodeobject.h')
| -rw-r--r-- | Include/unicodeobject.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 79b9a8c591..384cd5519f 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -571,6 +571,12 @@ PyAPI_FUNC(PyObject*) PyUnicode_FromObject( PyAPI_FUNC(PyObject *) PyUnicode_FromFormatV(const char*, va_list); PyAPI_FUNC(PyObject *) PyUnicode_FromFormat(const char*, ...); +/* Format the object based on the format_spec, as defined in PEP 3101 + (Advanced String Formatting). */ +PyAPI_FUNC(PyObject *) _PyUnicode_FormatAdvanced(PyObject *obj, + Py_UNICODE *format_spec, + Py_ssize_t format_spec_len); + PyAPI_FUNC(void) PyUnicode_InternInPlace(PyObject **); PyAPI_FUNC(void) PyUnicode_InternImmortal(PyObject **); PyAPI_FUNC(PyObject *) PyUnicode_InternFromString(const char *); |
