On Thu, Jun 5, 2008 at 10:50 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> I believe Alexandre is familiar with PyArg_ParseTupleAndKeywords(),
> but its API doesn't let you specify keywords that have no positional
> equivalent. He's after the C equivalent of
>
> def foo(*, a, b): ...
>
> where a and b *must* be specified as keywords by the caller.

Yes, that is what I was looking for. As Mark pointed out, the solution
is simply to check the size of the args tuple -- i.e., no special API
is required.

-- Alexandre
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to