summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-16 13:07:24 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-16 13:07:24 (GMT)
commitc06022966f58b7130e0a8b7150d1955865c84dc8 (patch)
tree61b860da9f4a15dd879cc7bc1cd0395108e1fc92 /Python
parent3ddee714d1d4473f8fa04a6d8356d3eafb695a50 (diff)
downloadcpython-c06022966f58b7130e0a8b7150d1955865c84dc8.zip
cpython-c06022966f58b7130e0a8b7150d1955865c84dc8.tar.gz
cpython-c06022966f58b7130e0a8b7150d1955865c84dc8.tar.bz2
Add "varargs" attribute.
Diffstat (limited to 'Python')
-rw-r--r--Python/modsupport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c
index 5d56241..7deded4 100644
--- a/Python/modsupport.c
+++ b/Python/modsupport.c
@@ -45,7 +45,7 @@ initmodule(name, methods)
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);