diff -r 0fd72636de2b Modules/_tkinter.c --- a/Modules/_tkinter.c Fri Sep 20 23:28:27 2013 +0300 +++ b/Modules/_tkinter.c Fri Sep 20 23:58:06 2013 +0300 @@ -2515,6 +2515,9 @@ { int wantobjects = -1; + if (PyErr_WarnEx(PyExc_DeprecationWarning, + "wantobjects() is deprecated.", 1) < 0) + return NULL; if (!PyArg_ParseTuple(args, "|i:wantobjects", &wantobjects)) return NULL; if (wantobjects == -1) @@ -2730,7 +2733,7 @@ try getting rid of it. */ char *className = NULL; int interactive = 0; - int wantobjects = 0; + int wantobjects = -1; int wantTk = 1; /* If false, then Tk_Init() doesn't get called */ int sync = 0; /* pass -sync to wish */ char *use = NULL; /* pass -use to wish */ @@ -2743,6 +2746,11 @@ &sync, &use)) return NULL; + if (wantobjects != -1) { + if (PyErr_WarnEx(PyExc_DeprecationWarning, + "wantobjects is deprecated.", 1) < 0) + return NULL; + } return (PyObject *) Tkapp_New(screenName, className, interactive, wantobjects, wantTk, sync, use);