From: Robert Bradshaw Date: Sat, 7 Jul 2007 09:01:00 +0000 (-0700) Subject: Jim Kleckner patch to allow trailing commas in function argument lists X-Git-Tag: 0.9.6.14~29^2~177^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eb1857fb3f099c34d4edf8eeda2d54b4bb30ce0b;p=cython.git Jim Kleckner patch to allow trailing commas in function argument lists --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index d819cceb..927c8280 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -1503,7 +1503,7 @@ def p_c_arg_list(s, in_pyfunc, cmethod_flag = 0): args.append(p_c_arg_decl(s, in_pyfunc, cmethod_flag)) while s.sy == ',': s.next() - if s.sy in c_arg_list_trailers: + if s.sy in c_arg_list_terminators: break args.append(p_c_arg_decl(s, in_pyfunc)) return args