2023-07-02 18:19:59 -03:00
|
|
|
#ifndef Py_INTERNAL_COMPLEXOBJECT_H
|
|
|
|
#define Py_INTERNAL_COMPLEXOBJECT_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef Py_BUILD_CORE
|
|
|
|
# error "this header requires Py_BUILD_CORE define"
|
|
|
|
#endif
|
|
|
|
|
2023-07-03 05:23:43 -03:00
|
|
|
#include "pycore_unicodeobject.h" // _PyUnicodeWriter
|
|
|
|
|
2023-07-02 18:19:59 -03:00
|
|
|
/* Format the object based on the format_spec, as defined in PEP 3101
|
|
|
|
(Advanced String Formatting). */
|
|
|
|
extern int _PyComplex_FormatAdvancedWriter(
|
|
|
|
_PyUnicodeWriter *writer,
|
|
|
|
PyObject *obj,
|
|
|
|
PyObject *format_spec,
|
|
|
|
Py_ssize_t start,
|
|
|
|
Py_ssize_t end);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif // !Py_INTERNAL_COMPLEXOBJECT_H
|