[Python-checkins] cpython: Use PyTuple_GET_SIZE like the adjacent code does.

raymond.hettinger python-checkins at python.org
Tue Aug 18 17:07:50 CEST 2015


https://hg.python.org/cpython/rev/f65729eb9147
changeset:   97435:f65729eb9147
user:        Raymond Hettinger <python at rcn.com>
date:        Tue Aug 18 08:07:16 2015 -0700
summary:
  Use PyTuple_GET_SIZE like the adjacent code does.

files:
  Python/bltinmodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -1158,7 +1158,7 @@
     PyObject *result;
     Py_ssize_t numargs, i;
 
-    numargs = PyTuple_Size(lz->iters);
+    numargs = PyTuple_GET_SIZE(lz->iters);
     argtuple = PyTuple_New(numargs);
     if (argtuple == NULL)
         return NULL;

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list