You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
add pos_arg ::= expr to make params of fns clear
This commit is contained in:
@@ -1031,7 +1031,8 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
self.prune()
|
||||
|
||||
def listcomprehension_walk3(self, node, iter_index, code_index=-5):
|
||||
"""List comprehensions the way they are done in Python3.
|
||||
"""
|
||||
List comprehensions the way they are done in Python3.
|
||||
They're more other comprehensions, e.g. set comprehensions
|
||||
See if we can combine code.
|
||||
"""
|
||||
@@ -1538,6 +1539,7 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
|
||||
if default:
|
||||
if self.showast:
|
||||
print()
|
||||
print('--', name)
|
||||
print(default)
|
||||
print('--')
|
||||
@@ -1573,7 +1575,6 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
return
|
||||
|
||||
# build parameters
|
||||
|
||||
params = [build_param(ast, name, default) for
|
||||
name, default in zip_longest(paramnames, defparams, fillvalue=None)]
|
||||
# params = [ build_param(ast, name, default) for
|
||||
|
Reference in New Issue
Block a user