diff Modules/selectmodule.c @ 17873:1eb12259feea legacy-trunk

Add :method info to the PyArg_ParseTuple() format strings for poll objects.
author Fred Drake <fdrake@acm.org>
date Mon, 21 May 2001 03:29:05 +0000
parents 31e302e94da8
children b9d47d083d2c
line wrap: on
line diff
--- a/Modules/selectmodule.c	Sun May 20 12:26:04 2001 +0000
+++ b/Modules/selectmodule.c	Mon May 21 03:29:05 2001 +0000
@@ -362,7 +362,7 @@
 	PyObject *o, *key, *value;
 	int fd, events = POLLIN | POLLPRI | POLLOUT;
 
-	if (!PyArg_ParseTuple(args, "O|i", &o, &events)) {
+	if (!PyArg_ParseTuple(args, "O|i:register", &o, &events)) {
 		return NULL;
 	}
   
@@ -392,7 +392,7 @@
 	PyObject *o, *key;
 	int fd;
 
-	if (!PyArg_ParseTuple(args, "O", &o)) {
+	if (!PyArg_ParseTuple(args, "O:unregister", &o)) {
 		return NULL;
 	}
   
@@ -431,7 +431,7 @@
 	int timeout = 0, poll_result, i, j;
 	PyObject *value = NULL, *num = NULL;
 
-	if (!PyArg_ParseTuple(args, "|O", &tout)) {
+	if (!PyArg_ParseTuple(args, "|O:poll", &tout)) {
 		return NULL;
 	}