Library
-------
+- The _tkinter module functions "createfilehandler", "deletefilehandler",
+ "createtimerhandler", "mainloop", "dooneevent" and "quit" have been
+ deprecated for removal in 3.x
+
- Issue #4796: Added Decimal.from_float() and Context.create_decimal_from_float()
to the decimal module.
PyObject *file, *func;
int mask, tfile;
+ if (!self && Py_Py3kWarningFlag) {
+ if (PyErr_Warn(PyExc_DeprecationWarning,
+ "_tkinter.createfilehandler is gone in 3.x") < 0)
+ return NULL;
+ }
+
if (!PyArg_ParseTuple(args, "OiO:createfilehandler",
&file, &mask, &func))
return NULL;
PyObject *file;
int tfile;
+ if (!self && Py_Py3kWarningFlag) {
+ if (PyErr_Warn(PyExc_DeprecationWarning,
+ "_tkinter.deletefilehandler is gone in 3.x") < 0)
+ return NULL;
+ }
+
if (!PyArg_ParseTuple(args, "O:deletefilehandler", &file))
return NULL;
PyObject *func;
TkttObject *v;
+ if (!self && Py_Py3kWarningFlag) {
+ if (PyErr_Warn(PyExc_DeprecationWarning,
+ "_tkinter.createtimerhandler is gone in 3.x") < 0)
+ return NULL;
+ }
+
if (!PyArg_ParseTuple(args, "iO:createtimerhandler",
&milliseconds, &func))
return NULL;
PyThreadState *tstate = PyThreadState_Get();
#endif
+ if (!self && Py_Py3kWarningFlag) {
+ if (PyErr_Warn(PyExc_DeprecationWarning,
+ "_tkinter.mainloop is gone in 3.x") < 0)
+ return NULL;
+ }
+
if (!PyArg_ParseTuple(args, "|i:mainloop", &threshold))
return NULL;
int flags = 0;
int rv;
+ if (!self && Py_Py3kWarningFlag) {
+ if (PyErr_Warn(PyExc_DeprecationWarning,
+ "_tkinter.dooneevent is gone in 3.x") < 0)
+ return NULL;
+ }
+
if (!PyArg_ParseTuple(args, "|i:dooneevent", &flags))
return NULL;
Tkapp_Quit(PyObject *self, PyObject *args)
{
+ if (!self && Py_Py3kWarningFlag) {
+ if (PyErr_Warn(PyExc_DeprecationWarning,
+ "_tkinter.createfilehandler is gone in 3.x") < 0)
+ return NULL;
+ }
+
if (!PyArg_ParseTuple(args, ":quit"))
return NULL;