On Fri, Nov 06, 2020 at 09:03:34AM +0100, Jochen S wrote:
Hi
if I understand #1243 correctly I cannot export a function with multiple
default arguments, but only use the second or third. Something along the lines
of:
#pythran export test(float64, int (int, int))
#pythran export test(float64, (int, int))
#pythran export test(float64, int)
#pythran export test(float64)
def test(x, i=0, t=(1,2)):
print(x)
print(i)
print(t)
At least that doesn't seem to work for me. and just specifying the first and
last line I would always have to either pass i and t or none of them correct?
Is there are way of working around this, except for writing a python wrapper?
#pythran export test(float64, int, (int, int))
#pythran export test(float64, int)
#pythran export test(float64)
#pythran export test(float64, (int, int))