diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/tools/cython/Cython/Includes/cpython/cellobject.pxd | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/cpython/cellobject.pxd')
-rw-r--r-- | contrib/tools/cython/Cython/Includes/cpython/cellobject.pxd | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/contrib/tools/cython/Cython/Includes/cpython/cellobject.pxd b/contrib/tools/cython/Cython/Includes/cpython/cellobject.pxd index fc3605ca4d..5e3dd3d63c 100644 --- a/contrib/tools/cython/Cython/Includes/cpython/cellobject.pxd +++ b/contrib/tools/cython/Cython/Includes/cpython/cellobject.pxd @@ -1,35 +1,35 @@ -from .object cimport PyObject - -cdef extern from "Python.h": - - ############################################################################ - # Cell Objects - ############################################################################ - - bint PyCell_Check(object ob) - # Return true if ob is a cell object; ob must not be NULL. - - object PyCell_New(PyObject* ob) - # Return value: New reference. - # Create and return a new cell object containing the value ob. The - # parameter may be NULL. - - object PyCell_Get(object cell) - # Return value: New reference. - # Return the contents of the cell object cell. - - object PyCell_GET(object cell) - # Return value: Borrowed reference. - # Return the contents of the cell object cell, but without checking that - # cell is non-NULL and is a cell object. - - int PyCell_Set(object cell, PyObject* value) except? -1 - # Set the contents of the cell object cell to value. This releases the - # reference to any current content of the cell. value may be NULL. cell - # must be non-NULL; if it is not a cell object, -1 will be returned. On - # success, 0 will be returned. - - void PyCell_SET(object cell, PyObject* value) - # Sets the value of the cell object cell to value. No reference counts are - # adjusted, and no checks are made for safety; cell must be non-NULL and - # must be a cell object. +from .object cimport PyObject + +cdef extern from "Python.h": + + ############################################################################ + # Cell Objects + ############################################################################ + + bint PyCell_Check(object ob) + # Return true if ob is a cell object; ob must not be NULL. + + object PyCell_New(PyObject* ob) + # Return value: New reference. + # Create and return a new cell object containing the value ob. The + # parameter may be NULL. + + object PyCell_Get(object cell) + # Return value: New reference. + # Return the contents of the cell object cell. + + object PyCell_GET(object cell) + # Return value: Borrowed reference. + # Return the contents of the cell object cell, but without checking that + # cell is non-NULL and is a cell object. + + int PyCell_Set(object cell, PyObject* value) except? -1 + # Set the contents of the cell object cell to value. This releases the + # reference to any current content of the cell. value may be NULL. cell + # must be non-NULL; if it is not a cell object, -1 will be returned. On + # success, 0 will be returned. + + void PyCell_SET(object cell, PyObject* value) + # Sets the value of the cell object cell to value. No reference counts are + # adjusted, and no checks are made for safety; cell must be non-NULL and + # must be a cell object. |