File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ Cell objects are not likely to be useful elsewhere.
3939
4040.. c :function :: PyObject* PyCell_Get (PyObject *cell)
4141
42- Return the contents of the cell *cell *.
42+ Return the contents of the cell *cell *, which can be ``NULL ``.
43+ If *cell * is not a cell object, returns ``NULL `` with an exception set.
4344
4445
4546.. c :function :: PyObject* PyCell_GET (PyObject *cell)
@@ -52,8 +53,10 @@ Cell objects are not likely to be useful elsewhere.
5253
5354 Set the contents of the cell object *cell * to *value *. This releases the
5455 reference to any current content of the cell. *value * may be ``NULL ``. *cell *
55- must be non-``NULL ``; if it is not a cell object, ``-1 `` will be returned. On
56- success, ``0 `` will be returned.
56+ must be non-``NULL ``.
57+
58+ On success, return ``0 ``.
59+ If *cell * is not a cell object, set an exception and return ``-1 ``.
5760
5861
5962.. c :function :: void PyCell_SET (PyObject *cell, PyObject *value)
You can’t perform that action at this time.
0 commit comments