On Thu, Apr 7, 2011 at 1:03 AM, James Y Knight <f...@fuhm.net> wrote: > Perhaps the argument handling for C functions ought to be enhanced to work > like python's argument handling, instead of trying to hack it the other way > around?
Oh, definitely. It is just that you pretty much have to use the *args hack when providing Python versions of C functions that accept both positional-only arguments and arbitrary keyword arguments. For "ordinary" calls, simply switching to PyArg_ParseTupleAndKeywords over other alternatives basically deals with the problem. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com