[C++-sig] Registration order in pyplusplus

Niall Douglas s_sourceforge at nedprod.com
Thu Feb 9 13:09:21 CET 2006


On 9 Feb 2006 at 7:59, Roman Yakovenko wrote:

> Solution for the problem:
> function_t and constructor_t code creators has property "use_keywords"
> This property is responcible for generation of keyword arguments. If you set
> it to False, then keyword arguments will not be generated.
> 
> Here is relevant code:
> 
> relevant_classes = (code_creators.function_t, code_creators.constructor_t )
> calldefs = filter( lambda creator: isinstance( creator, relevant_classes )
>                        , code_creators.make_flatten( extmodule.creators ) )
>   for calldef in calldefs:
>      calldef.use_keywords = False
> 
> Your version of pyplusplus already has this functionality, but it has few bug.
> Please, use latest CVS version.

I updated to CVS, but the use_keywords property is already False by 
default and furthermore, there is no code in _keywords_args() to test 
the state of use_keywords and generate alternative code 
appropriately.

Did you commit your changes to CVS?

Cheers,
Niall






More information about the Cplusplus-sig mailing list