Fix Python default args when using kwargs

Recent default arg handling fixes didn't fix the case when kwargs is turned on
This commit is contained in:
William S Fulton 2015-01-15 07:54:36 +00:00
commit afba5b755a
3 changed files with 37 additions and 24 deletions

View file

@ -79,9 +79,9 @@
static const size_type hello = 3;
};
int rfoo( const size_type& x = Hello::hello, const Hello& y = Hello() )
int rfoo( int n = 0, const size_type& x = Hello::hello, const Hello& y = Hello() )
{
return x;
return n - x;
}
%}
%{