diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /contrib/tools/cython/Cython/Includes/cpython/float.pxd | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/cpython/float.pxd')
-rw-r--r-- | contrib/tools/cython/Cython/Includes/cpython/float.pxd | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/contrib/tools/cython/Cython/Includes/cpython/float.pxd b/contrib/tools/cython/Cython/Includes/cpython/float.pxd index 65328f31ea..2ce7762ba2 100644 --- a/contrib/tools/cython/Cython/Includes/cpython/float.pxd +++ b/contrib/tools/cython/Cython/Includes/cpython/float.pxd @@ -1,39 +1,39 @@ -cdef extern from "Python.h": - - ############################################################################ - # 7.2.3 - ############################################################################ - # PyFloatObject - # - # This subtype of PyObject represents a Python floating point object. - - # PyTypeObject PyFloat_Type - # - # This instance of PyTypeObject represents the Python floating - # point type. This is the same object as float and - # types.FloatType. - - bint PyFloat_Check(object p) - # Return true if its argument is a PyFloatObject or a subtype of - # PyFloatObject. - - bint PyFloat_CheckExact(object p) - # Return true if its argument is a PyFloatObject, but not a - # subtype of PyFloatObject. - - object PyFloat_FromString(object str, char **pend) - # Return value: New reference. - # Create a PyFloatObject object based on the string value in str, - # or NULL on failure. The pend argument is ignored. It remains - # only for backward compatibility. - - object PyFloat_FromDouble(double v) - # Return value: New reference. - # Create a PyFloatObject object from v, or NULL on failure. - - double PyFloat_AsDouble(object pyfloat) except? -1 - # Return a C double representation of the contents of pyfloat. - - double PyFloat_AS_DOUBLE(object pyfloat) - # Return a C double representation of the contents of pyfloat, but - # without error checking. +cdef extern from "Python.h": + + ############################################################################ + # 7.2.3 + ############################################################################ + # PyFloatObject + # + # This subtype of PyObject represents a Python floating point object. + + # PyTypeObject PyFloat_Type + # + # This instance of PyTypeObject represents the Python floating + # point type. This is the same object as float and + # types.FloatType. + + bint PyFloat_Check(object p) + # Return true if its argument is a PyFloatObject or a subtype of + # PyFloatObject. + + bint PyFloat_CheckExact(object p) + # Return true if its argument is a PyFloatObject, but not a + # subtype of PyFloatObject. + + object PyFloat_FromString(object str, char **pend) + # Return value: New reference. + # Create a PyFloatObject object based on the string value in str, + # or NULL on failure. The pend argument is ignored. It remains + # only for backward compatibility. + + object PyFloat_FromDouble(double v) + # Return value: New reference. + # Create a PyFloatObject object from v, or NULL on failure. + + double PyFloat_AsDouble(object pyfloat) except? -1 + # Return a C double representation of the contents of pyfloat. + + double PyFloat_AS_DOUBLE(object pyfloat) + # Return a C double representation of the contents of pyfloat, but + # without error checking. |