Re: Keyword arguments and python simpletons

From: <wlavrijsen_at_lbl.gov>
Date: Wed, 12 May 2010 09:56:20 -0700


Tim,

> Wim, could you point me towards where the check for the non empty
> keyword argument would be done? I will have a go at implementing it
> and submit a patch.

bindings/pyroot/src/MethodHolder.cxx line 640. The argument "kwds" is NULL when no keywords are provided, non-NULL when there are. A simple diagnosis is to check it for non-NULLness and raise if so.

Best regards,

            Wim

-- 
WLavrijsen_at_lbl.gov    --    +1 (510) 486 6411    --    www.lavrijsen.net
Received on Wed May 12 2010 - 18:56:31 CEST

This archive was generated by hypermail 2.2.0 : Thu May 13 2010 - 17:50:01 CEST