diff options
author | Eric Smith <eric@trueblade.com> | 2009-04-30 00:58:58 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2009-04-30 00:58:58 (GMT) |
commit | 9139cc6a3ba9b6c66a09256f3295b1a4ed50adc9 (patch) | |
tree | 7e116afff6e262ba6161cad6c1f223f6741bf0d0 /Include/complexobject.h | |
parent | 2518d3c1c0b907b1cabdaa647c7affaa01ffca63 (diff) | |
download | cpython-9139cc6a3ba9b6c66a09256f3295b1a4ed50adc9.zip cpython-9139cc6a3ba9b6c66a09256f3295b1a4ed50adc9.tar.gz cpython-9139cc6a3ba9b6c66a09256f3295b1a4ed50adc9.tar.bz2 |
Issue #1588: Add complex.__format__.
Diffstat (limited to 'Include/complexobject.h')
-rw-r--r-- | Include/complexobject.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/complexobject.h b/Include/complexobject.h index 84b6d8b..c9a9500 100644 --- a/Include/complexobject.h +++ b/Include/complexobject.h @@ -54,6 +54,12 @@ PyAPI_FUNC(double) PyComplex_RealAsDouble(PyObject *op); PyAPI_FUNC(double) PyComplex_ImagAsDouble(PyObject *op); PyAPI_FUNC(Py_complex) PyComplex_AsCComplex(PyObject *op); +/* Format the object based on the format_spec, as defined in PEP 3101 + (Advanced String Formatting). */ +PyAPI_FUNC(PyObject *) _PyComplex_FormatAdvanced(PyObject *obj, + char *format_spec, + Py_ssize_t format_spec_len); + #ifdef __cplusplus } #endif |