File tree 1 file changed +6
-3
lines changed
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.
39
39
40
40
.. c :function :: PyObject* PyCell_Get (PyObject *cell)
41
41
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.
43
44
44
45
45
46
.. c :function :: PyObject* PyCell_GET (PyObject *cell)
@@ -52,8 +53,10 @@ Cell objects are not likely to be useful elsewhere.
52
53
53
54
Set the contents of the cell object *cell * to *value *. This releases the
54
55
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 ``.
57
60
58
61
59
62
.. c :function :: void PyCell_SET (PyObject *cell, PyObject *value)
You can’t perform that action at this time.
0 commit comments