mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Changes for new UNIX-specific built-in module 'select' and new header for
interfaces to variants of select() system call, "myselect.h". This includes adding fileno() methods to files, sockets and stdwin.
This commit is contained in:
parent
5dc8eb0914
commit
ed233a5696
7 changed files with 321 additions and 19 deletions
|
@ -2102,11 +2102,27 @@ stdwin_getscrmm(self, args)
|
|||
return makepoint(width, height);
|
||||
}
|
||||
|
||||
#ifdef unix
|
||||
static object *
|
||||
stdwin_connectionnumber(self, args)
|
||||
object *self;
|
||||
object *args;
|
||||
{
|
||||
if (!getnoarg(args))
|
||||
return NULL;
|
||||
return newintobject((long) wconnectionnumber());
|
||||
}
|
||||
#endif
|
||||
|
||||
static struct methodlist stdwin_methods[] = {
|
||||
{"askfile", stdwin_askfile},
|
||||
{"askstr", stdwin_askstr},
|
||||
{"askync", stdwin_askync},
|
||||
{"fetchcolor", stdwin_fetchcolor},
|
||||
#ifdef unix
|
||||
{"fileno", stdwin_connectionnumber},
|
||||
{"connectionnumber", stdwin_connectionnumber},
|
||||
#endif
|
||||
{"fleep", stdwin_fleep},
|
||||
{"getactive", stdwin_getactive},
|
||||
{"getcutbuffer", stdwin_getcutbuffer},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue