aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython/Cython/Includes/cpython/complex.pxd
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /contrib/tools/cython/Cython/Includes/cpython/complex.pxd
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
downloadydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/cpython/complex.pxd')
-rw-r--r--contrib/tools/cython/Cython/Includes/cpython/complex.pxd100
1 files changed, 50 insertions, 50 deletions
diff --git a/contrib/tools/cython/Cython/Includes/cpython/complex.pxd b/contrib/tools/cython/Cython/Includes/cpython/complex.pxd
index 607d934a93..f5ba339575 100644
--- a/contrib/tools/cython/Cython/Includes/cpython/complex.pxd
+++ b/contrib/tools/cython/Cython/Includes/cpython/complex.pxd
@@ -1,50 +1,50 @@
-
-cdef extern from "Python.h":
-
- ctypedef struct Py_complex:
- double imag
- double real
-
- ############################################################################
- # 7.2.5.2 Complex Numbers as Python Objects
- ############################################################################
-
- # PyComplexObject
- # This subtype of PyObject represents a Python complex number object.
-
- ctypedef class __builtin__.complex [object PyComplexObject]:
- cdef Py_complex cval
- # not making these available to keep them read-only:
- #cdef double imag "cval.imag"
- #cdef double real "cval.real"
-
- # PyTypeObject PyComplex_Type
- # This instance of PyTypeObject represents the Python complex
- # number type. It is the same object as complex and
- # types.ComplexType.
-
- bint PyComplex_Check(object p)
- # Return true if its argument is a PyComplexObject or a subtype of
- # PyComplexObject.
-
- bint PyComplex_CheckExact(object p)
- # Return true if its argument is a PyComplexObject, but not a subtype of PyComplexObject.
-
- object PyComplex_FromCComplex(Py_complex v)
- # Return value: New reference.
- # Create a new Python complex number object from a C Py_complex value.
-
- object PyComplex_FromDoubles(double real, double imag)
- # Return value: New reference.
- # Return a new PyComplexObject object from real and imag.
-
- double PyComplex_RealAsDouble(object op) except? -1
- # Return the real part of op as a C double.
-
- double PyComplex_ImagAsDouble(object op) except? -1
- # Return the imaginary part of op as a C double.
-
- Py_complex PyComplex_AsCComplex(object op)
- # Return the Py_complex value of the complex number op.
- #
- # Returns (-1+0i) in case of an error
+
+cdef extern from "Python.h":
+
+ ctypedef struct Py_complex:
+ double imag
+ double real
+
+ ############################################################################
+ # 7.2.5.2 Complex Numbers as Python Objects
+ ############################################################################
+
+ # PyComplexObject
+ # This subtype of PyObject represents a Python complex number object.
+
+ ctypedef class __builtin__.complex [object PyComplexObject]:
+ cdef Py_complex cval
+ # not making these available to keep them read-only:
+ #cdef double imag "cval.imag"
+ #cdef double real "cval.real"
+
+ # PyTypeObject PyComplex_Type
+ # This instance of PyTypeObject represents the Python complex
+ # number type. It is the same object as complex and
+ # types.ComplexType.
+
+ bint PyComplex_Check(object p)
+ # Return true if its argument is a PyComplexObject or a subtype of
+ # PyComplexObject.
+
+ bint PyComplex_CheckExact(object p)
+ # Return true if its argument is a PyComplexObject, but not a subtype of PyComplexObject.
+
+ object PyComplex_FromCComplex(Py_complex v)
+ # Return value: New reference.
+ # Create a new Python complex number object from a C Py_complex value.
+
+ object PyComplex_FromDoubles(double real, double imag)
+ # Return value: New reference.
+ # Return a new PyComplexObject object from real and imag.
+
+ double PyComplex_RealAsDouble(object op) except? -1
+ # Return the real part of op as a C double.
+
+ double PyComplex_ImagAsDouble(object op) except? -1
+ # Return the imaginary part of op as a C double.
+
+ Py_complex PyComplex_AsCComplex(object op)
+ # Return the Py_complex value of the complex number op.
+ #
+ # Returns (-1+0i) in case of an error