[Python-checkins] bpo-38391: Fixing a typo for Py_DECREF (GH-16616)
Miss Islington (bot)
webhook-mailer at python.org
Mon Oct 7 08:04:13 EDT 2019
https://github.com/python/cpython/commit/77b4a659b60536caf11c547332d30677f3e8f02e
commit: 77b4a659b60536caf11c547332d30677f3e8f02e
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-10-07T05:04:09-07:00
summary:
bpo-38391: Fixing a typo for Py_DECREF (GH-16616)
(cherry picked from commit 038503e08ac5b10601b95d5adc2c2cab7be10163)
Co-authored-by: Krishna Oza <krishoza15sep at gmail.com>
files:
M Doc/extending/newtypes_tutorial.rst
diff --git a/Doc/extending/newtypes_tutorial.rst b/Doc/extending/newtypes_tutorial.rst
index e6448e46411bf..50be28fbcba28 100644
--- a/Doc/extending/newtypes_tutorial.rst
+++ b/Doc/extending/newtypes_tutorial.rst
@@ -182,7 +182,7 @@ set to *NULL*. ::
Py_INCREF(&CustomType);
if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) {
Py_DECREF(&CustomType);
- PY_DECREF(m);
+ Py_DECREF(m);
return NULL;
}
More information about the Python-checkins
mailing list