codekingpro/portable-devtools
115k
1#ifndef Py_INTERNAL_COMPLEXOBJECT_H2#define Py_INTERNAL_COMPLEXOBJECT_H3#ifdef __cplusplus4extern "C" {5#endif6 7#ifndef Py_BUILD_CORE8# error "this header requires Py_BUILD_CORE define"9#endif10 11#include "pycore_unicodeobject.h" // _PyUnicodeWriter12 13/* Format the object based on the format_spec, as defined in PEP 310114 (Advanced String Formatting). */15extern 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// Operations on complex numbers.23PyAPI_FUNC(Py_complex) _Py_cr_sum(Py_complex, double);24PyAPI_FUNC(Py_complex) _Py_cr_diff(Py_complex, double);25PyAPI_FUNC(Py_complex) _Py_rc_diff(double, Py_complex);26PyAPI_FUNC(Py_complex) _Py_cr_prod(Py_complex, double);27PyAPI_FUNC(Py_complex) _Py_cr_quot(Py_complex, double);28PyAPI_FUNC(Py_complex) _Py_rc_quot(double, Py_complex);29 30 31#ifdef __cplusplus32}33#endif34#endif // !Py_INTERNAL_COMPLEXOBJECT_H35 