You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
BIN
test/bytecode_3.7_run/07_kwargs.pyc
Normal file
BIN
test/bytecode_3.7_run/07_kwargs.pyc
Normal file
Binary file not shown.
9
test/simple_source/bug36/07_kwargs.py
Normal file
9
test/simple_source/bug36/07_kwargs.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# Bug in Python 3.6 and 3.7 was getting comma before **kw
|
||||
|
||||
def fn(arg, *, kwarg='test', **kw):
|
||||
assert arg == 1
|
||||
assert kwarg == 'testing'
|
||||
assert kw['foo'] == 'bar'
|
||||
|
||||
|
||||
fn(1, kwarg='testing', foo='bar')
|
@@ -735,7 +735,7 @@ def make_function3(self, node, is_lambda, nested=1, code_node=None):
|
||||
self.write(sep)
|
||||
self.write("%s=%s" % (n, defaults[i]))
|
||||
sep = ', '
|
||||
ends_in_comma = True
|
||||
ends_in_comma = False
|
||||
pass
|
||||
pass
|
||||
pass
|
||||
|
Reference in New Issue
Block a user