cpython: 6b841e1ee3b8 (original) (raw)

--- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -200,6 +200,8 @@ class TclTest(unittest.TestCase): (('a', 3.4), ('a', 3.4)), ((), ()), (call('list', 1, '2', (3.4,)), (1, '2', (3.4,))),

@@ -232,6 +234,8 @@ class TclTest(unittest.TestCase): (('a', (2, 3.4)), ('a', (2, 3.4))), ((), ()), (call('list', 1, '2', (3.4,)), (1, '2', (3.4,))),

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -66,6 +66,9 @@ Core and Builtins Library ------- +- Issue #16809: Tkinter's splitlist() and split() methods now accept Tcl_Obj

--- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -1940,16 +1940,35 @@ Tkapp_SplitList(PyObject *self, PyObject char *list; int argc; char **argv;

+ if (!PyArg_ParseTuple(args, "et:splitlist", "utf-8", &list)) return NULL; @@ -1980,16 +1999,38 @@ Tkapp_SplitList(PyObject *self, PyObject static PyObject * Tkapp_Split(PyObject *self, PyObject *args) {

+ if (!PyArg_ParseTuple(args, "et:split", "utf-8", &list)) return NULL; v = Split(list);