changeset: 82254:61993bb9ab0e parent: 82250:f99ff3b01fab parent: 82253:38bb2a46692e user: Serhiy Storchaka date: Mon Feb 18 13:03:07 2013 +0200 files: Misc/NEWS Modules/_tkinter.c description: Issue #13153: Tkinter functions now raise TclError instead of ValueError when a string argument contains non-BMP character. diff -r f99ff3b01fab -r 61993bb9ab0e Misc/NEWS --- a/Misc/NEWS Mon Feb 18 12:22:05 2013 +0200 +++ b/Misc/NEWS Mon Feb 18 13:03:07 2013 +0200 @@ -257,6 +257,9 @@ Library ------- +- Issue #13153: Tkinter functions now raise TclError instead of ValueError when + a string argument contains non-BMP character. + - Issue #9669: Protect re against infinite loops on zero-width matching in non-greedy repeat. Patch by Matthew Barnett. diff -r f99ff3b01fab -r 61993bb9ab0e Modules/_tkinter.c --- a/Modules/_tkinter.c Mon Feb 18 12:22:05 2013 +0200 +++ b/Modules/_tkinter.c Mon Feb 18 13:03:07 2013 +0200 @@ -870,7 +870,7 @@ #if TCL_UTF_MAX == 3 if (ch>= 0x10000) { /* Tcl doesn't do UTF-16, yet. */ - PyErr_Format(PyExc_ValueError, + PyErr_Format(Tkinter_TclError, "character U+%x is above the range " "(U+0000-U+FFFF) allowed by Tcl", ch);

AltStyle によって変換されたページ (->オリジナル) /