summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-05-06 11:19:22 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-05-06 11:19:22 (GMT)
commit8d0f620285d160c454e024c6da0fbf1686264aed (patch)
tree4a0d92a00ca853c4862907b95b3f1a5965e9e831 /Modules
parent645058d11a0ce6616d93cce692bb1378e61efb80 (diff)
downloadcpython-8d0f620285d160c454e024c6da0fbf1686264aed.zip
cpython-8d0f620285d160c454e024c6da0fbf1686264aed.tar.gz
cpython-8d0f620285d160c454e024c6da0fbf1686264aed.tar.bz2
Use specialized functions intead of Py_BuildValue() in _tkinter.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_tkinter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index b048a48..4da836e 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -2092,7 +2092,7 @@ _tkinter_tkapp_exprlong_impl(TkappObject *self, const char *s)
if (retval == TCL_ERROR)
res = Tkinter_Error((PyObject *)self);
else
- res = Py_BuildValue("l", v);
+ res = PyLong_FromLong(v);
LEAVE_OVERLAP_TCL
return res;
}
@@ -2123,7 +2123,7 @@ _tkinter_tkapp_exprdouble_impl(TkappObject *self, const char *s)
if (retval == TCL_ERROR)
res = Tkinter_Error((PyObject *)self);
else
- res = Py_BuildValue("d", v);
+ res = PyFloat_FromDouble(v);
LEAVE_OVERLAP_TCL
return res;
}
@@ -2152,7 +2152,7 @@ _tkinter_tkapp_exprboolean_impl(TkappObject *self, const char *s)
if (retval == TCL_ERROR)
res = Tkinter_Error((PyObject *)self);
else
- res = Py_BuildValue("i", v);
+ res = PyLong_FromLong(v);
LEAVE_OVERLAP_TCL
return res;
}
@@ -2891,7 +2891,7 @@ _tkinter_tkapp_dooneevent_impl(TkappObject *self, int flags)
ENTER_TCL
rv = Tcl_DoOneEvent(flags);
LEAVE_TCL
- return Py_BuildValue("i", rv);
+ return PyLong_FromLong(rv);
}
/*[clinic input]