-
-
Notifications
You must be signed in to change notification settings - Fork 218
Open
Labels
Description
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:
2
6
6
In Transcrypt, we get:
2
6
2
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.