mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-33029: Fix signatures of getter and setter functions. (GH-10746)
Fix also return type for few other functions (clear, releasebuffer).
This commit is contained in:
parent
1005c84535
commit
d4f9cf5545
25 changed files with 128 additions and 122 deletions
|
|
@ -112,7 +112,7 @@ cell_get_contents(PyCellObject *op, void *closure)
|
|||
}
|
||||
|
||||
static int
|
||||
cell_set_contents(PyCellObject *op, PyObject *obj)
|
||||
cell_set_contents(PyCellObject *op, PyObject *obj, void *Py_UNUSED(ignored))
|
||||
{
|
||||
Py_XINCREF(obj);
|
||||
Py_XSETREF(op->ob_ref, obj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue