• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef Py_INTERNAL_COMPLEXOBJECT_H
2 #define Py_INTERNAL_COMPLEXOBJECT_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 #ifndef Py_BUILD_CORE
8 #  error "this header requires Py_BUILD_CORE define"
9 #endif
10 
11 #include "pycore_unicodeobject.h" // _PyUnicodeWriter
12 
13 /* Format the object based on the format_spec, as defined in PEP 3101
14    (Advanced String Formatting). */
15 extern int _PyComplex_FormatAdvancedWriter(
16     _PyUnicodeWriter *writer,
17     PyObject *obj,
18     PyObject *format_spec,
19     Py_ssize_t start,
20     Py_ssize_t end);
21 
22 #ifdef __cplusplus
23 }
24 #endif
25 #endif  // !Py_INTERNAL_COMPLEXOBJECT_H
26