Transcrypt icon indicating copy to clipboard operation
Transcrypt copied to clipboard

Bug in positional only arguments separator '/'

Open trenta3 opened this issue 4 years ago • 0 comments

def Q(s, /):
    print(s)

Q(3)

is translated as

export var Q=function(){__call__(print,null,s)}
__call__(Q,null,3)

which generates an error because s is not bound to anything.

trenta3 avatar Jul 16 '21 21:07 trenta3