Skip to content

BUG: kwargs don't work #884

@JGreenlee

Description

@JGreenlee
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions