mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00: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
|
@ -842,7 +842,7 @@ PyTclObject_string(PyTclObject *self, void *ignored)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
PyTclObject_str(PyTclObject *self, void *ignored)
|
||||
PyTclObject_str(PyTclObject *self)
|
||||
{
|
||||
if (self->string) {
|
||||
Py_INCREF(self->string);
|
||||
|
@ -855,7 +855,7 @@ PyTclObject_str(PyTclObject *self, void *ignored)
|
|||
static PyObject *
|
||||
PyTclObject_repr(PyTclObject *self)
|
||||
{
|
||||
PyObject *repr, *str = PyTclObject_str(self, NULL);
|
||||
PyObject *repr, *str = PyTclObject_str(self);
|
||||
if (str == NULL)
|
||||
return NULL;
|
||||
repr = PyUnicode_FromFormat("<%s object: %R>",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue