mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +00:00
Add "varargs" attribute.
This commit is contained in:
parent
3ddee714d1
commit
c06022966f
3 changed files with 26 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue