c++-sig@python.org
[Top] [All Lists]

Re: [C++-sig] Default arguments in pyplusplus

Subject: Re: [C++-sig] Default arguments in pyplusplus
From: "Niall Douglas"
Date: Mon, 19 Jun 2006 01:34:38 +0100
On 18 Jun 2006 at 20:41, Roman Yakovenko wrote:

> > Needless to say, the TnFOX python bindings won't work without default
> > arguments working :(
> 
> I agree with you, may be you have some where in the code use_keywords = False?

That's precisely the case. I am talking about default parameters not 
working when use_keywords is False. Sorry, I thought I mentioned that 
earlier in a previous bug report.

I think surely you will need to use 
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS() for when keywords are not 
enabled?

> > I did try adding this on my own, but it's complex. I'm afraid the
> > class hierarchy in pyplusplus is fairly complex, complex enough that
> > without a debugger it's hard to modify. So I'll have to leave it to
> > you Roman!
> 
> Please provide test case and I will try to fix ASAP.

I think that I have use_keywords as False is enough? Try your unit 
test with use_keywords as False, if that still works I will modify 
one of your unit tests to show the behaviour.

Cheers,
Niall



_______________________________________________
C++-sig mailing list
C++-sig@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/c++-sig

<Prev in Thread] Current Thread [Next in Thread>