Closed pamelafox closed 3 years ago
The following code produces a NameError on Brython, but works fine in Python 3.
def add_seen_k(k, f=lambda x: 0): def inner(z): print(k) return k return inner a = add_seen_k(3) a(3)
It works correctly without the default arguments, so presumably there's an issue with the parsing of default arguments?
Thank you so much! This will mean we can do assignments with default arguments in our class.
The following code produces a NameError on Brython, but works fine in Python 3.
It works correctly without the default arguments, so presumably there's an issue with the parsing of default arguments?