mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
Extending example: use Py_RETURN_NONE
This commit is contained in:
parent
29fc4bf5c7
commit
a072de14be
1 changed files with 1 additions and 3 deletions
|
|
@ -719,9 +719,7 @@ Philbrick (philbrick@hks.com)::
|
||||||
action, voltage);
|
action, voltage);
|
||||||
printf("-- Lovely plumage, the %s -- It's %s!\n", type, state);
|
printf("-- Lovely plumage, the %s -- It's %s!\n", type, state);
|
||||||
|
|
||||||
Py_INCREF(Py_None);
|
Py_RETURN_NONE;
|
||||||
|
|
||||||
return Py_None;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyMethodDef keywdarg_methods[] = {
|
static PyMethodDef keywdarg_methods[] = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue