Miki wrote: > I'm try to write the C equivalent of: > > def kw(*args, **kw): > print "%d args" % len(args), > if "default" in kw: > print "default is %s" % kw["default"] > else: > print "no default"
Consider using Cython instead, it will make your life a lot easier. The above is valid Cython code that the Cython compiler translates into optimised C code. http://cython.org/ Stefan -- http://mail.python.org/mailman/listinfo/python-list