Message279295
In the C source code that I am reading of tkinter: _tkinter.c. It seems that these parameters are not used:
- wantobjects
- useTk
- syn
- use
It seems that it's dead code. I hope that somebody can tell me whether I am right. I suppose that now Python returns always Python objects instead of strings. For this reason, wantobjects is not any more necessary. This is the C code of Tkinter_Create that I am reading:
static PyObject *
Tkinter_Create (self, args)
PyObject *self;
PyObject *args;
{
char *screenName = NULL;
char *baseName = NULL;
char *className = NULL;
int interactive = 0;
baseName = strrchr (Py_GetProgramName (), '/');
if (baseName != NULL)
baseName++;
else
baseName = Py_GetProgramName ();
className = "Tk";
if (!PyArg_ParseTuple (args, "|zssi",
&screenName, &baseName, &className, &interactive))
return NULL;
return (PyObject *) Tkapp_New (screenName, baseName, className,
interactive);
}
And this is the call to Tkinter_Create in Tkinter.py:
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) |
|
Date |
User |
Action |
Args |
2016-10-24 01:37:31 | tkinter | set | recipients:
+ tkinter, klappnase, serhiy.storchaka, GNJ |
2016-10-24 01:37:31 | tkinter | set | messageid: <1477273051.14.0.954659007078.issue28498@psf.upfronthosting.co.za> |
2016-10-24 01:37:31 | tkinter | link | issue28498 messages |
2016-10-24 01:37:30 | tkinter | create | |
|