Jim Kleckner patch to allow trailing commas in function argument lists
authorRobert Bradshaw <robertwb@math.washington.edu>
Sat, 7 Jul 2007 09:01:00 +0000 (02:01 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sat, 7 Jul 2007 09:01:00 +0000 (02:01 -0700)
Cython/Compiler/Parsing.py

index d819ccebbc0a1b56313569f0fb7412b03bdda33b..927c82806ed9af1dd30890a24575f35d7a3a1f05 100644 (file)
@@ -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