Kaydet (Commit) f761e104 authored tarafından Guido van Rossum's avatar Guido van Rossum

Make test_tcl.py pass, by accepting unicode strings as variable names.

üst 005ebb1f
......@@ -1463,6 +1463,10 @@ varname_converter(PyObject *in, void *_out)
*out = PyString_AsString(in);
return 1;
}
if (PyUnicode_Check(in)) {
*out = PyUnicode_AsString(in);
return 1;
}
if (PyTclObject_Check(in)) {
*out = PyTclObject_TclString(in);
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment