Mercurial > cpython-lru_cache-weakref
diff Tools/modulator/genmodule.py @ 3443:1ff12804ff2a legacy-trunk
A few missing casts (Richard Neitzel).
Don't append Unix paths on a Mac (Jack Jansen).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 07 Mar 1996 16:16:54 +0000 |
| parents | a1087aa641cd |
| children | 9e113aa3758d |
line wrap: on
line diff
--- a/Tools/modulator/genmodule.py Thu Mar 07 15:17:11 1996 +0000 +++ b/Tools/modulator/genmodule.py Thu Mar 07 16:16:54 1996 +0000 @@ -81,8 +81,9 @@ for fn in self.methodlist: self.method = fn self.addcode('module_method', fp) - new_ml = new_ml + ('{"%s",\t%s_%s,\t1,\t%s_%s__doc__},\n' - %(fn, self.abbrev, fn, self.abbrev, fn)) + new_ml = new_ml + ( + '{"%s",\t(PyCFunction)%s_%s,\tMETH_VARARGS,\t%s_%s__doc__},\n' + %(fn, self.abbrev, fn, self.abbrev, fn)) self.methodlist = new_ml self.addcode('module_tail', fp) @@ -107,8 +108,9 @@ for fn in self.methodlist: self.method = fn self.addcode('object_method', fp) - new_ml = new_ml + ('{"%s",\t%s_%s,\t1,\t%s_%s__doc__},\n' - %(fn, self.abbrev, fn, self.abbrev, fn)) + new_ml = new_ml + ( + '{"%s",\t(PyCFunction)%s_%s,\tMETH_VARARGS,\t%s_%s__doc__},\n' + %(fn, self.abbrev, fn, self.abbrev, fn)) self.methodlist = new_ml self.addcode('object_mlist', fp)
