diff Python/modsupport.c @ 488:90f35fcf8ea0 legacy-trunk

Add "varargs" attribute.
author Guido van Rossum <guido@python.org>
date Mon, 16 Dec 1991 13:07:24 +0000
parents 16b18f586fec
children 3cb686c48cdd
line wrap: on
line diff
--- a/Python/modsupport.c	Mon Dec 16 13:06:34 1991 +0000
+++ b/Python/modsupport.c	Mon Dec 16 13:07:24 1991 +0000
@@ -45,7 +45,7 @@
 	for (ml = methods; ml->ml_name != NULL; ml++) {
 		sprintf(namebuf, "%s.%s", name, ml->ml_name);
 		v = newmethodobject(strdup(namebuf), ml->ml_meth,
-						(object *)NULL);
+					(object *)NULL, ml->ml_varargs);
 		/* XXX The strdup'ed memory is never freed */
 		if (v == NULL || dictinsert(d, ml->ml_name, v) != 0) {
 			fprintf(stderr, "initializing module: %s\n", name);