def multiply(a, b=1):
return a * b
print(multiply(2))
print(multiply(2, 3))
print(multiply(2, b=3)) # doesn't work in Transcrypt
In CPython, we get the expected output:
In Transcrypt, we get:
According to transcrypt.org, kwargs are supported and are not acknowledged as a limitation.
Also, there does exist a __kwargtrans__ mechanism in the runtime. It just does not appear to be working.
In CPython, we get the expected output:
In Transcrypt, we get:
According to transcrypt.org,
kwargsare supported and are not acknowledged as a limitation.Also, there does exist a
__kwargtrans__mechanism in the runtime. It just does not appear to be working.