From: Stefan Behnel Date: Mon, 3 Sep 2007 14:13:26 +0000 (+0200) Subject: rewrote Python 2.5-ism X-Git-Tag: 0.9.6.14~29^2~152 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a082dbd4fb78e301fb2bb511a3ab783acf41c92c;p=cython.git rewrote Python 2.5-ism --- diff --git a/Cython/Compiler/TypeSlots.py b/Cython/Compiler/TypeSlots.py index 1f1d414d..a6316dca 100644 --- a/Cython/Compiler/TypeSlots.py +++ b/Cython/Compiler/TypeSlots.py @@ -85,7 +85,9 @@ class Signature: def method_flags(self): if self.ret_format == "O": - full_args = "O" + self.fixed_arg_format if self.has_dummy_arg else self.fixed_arg_format + full_args = self.fixed_arg_format + if self.has_dummy_arg: + full_args = "O" + full_args if full_args in ["O", "T"]: if self.has_generic_args: return [method_varargs, method_keywords]