MCPcopy
hub / github.com/rocky/python-uncompyle6 / build_unpack_tuple_with_call

Function build_unpack_tuple_with_call

uncompyle6/semantics/customize36.py:108–133  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

106 # fmt: on
107
108 def build_unpack_tuple_with_call(node):
109 n = node[0]
110 if n == "expr":
111 n = n[0]
112 if n == "tuple":
113 self.call36_tuple(n)
114 first = 1
115 sep = ", *"
116 elif n == "LOAD_STR":
117 value = self.format_pos_args(n)
118 self.f.write(value)
119 first = 1
120 sep = ", *"
121 else:
122 first = 0
123 sep = "*"
124
125 buwc = node[-1]
126 assert buwc.kind.startswith("BUILD_TUPLE_UNPACK_WITH_CALL")
127 for n in node[first:-1]:
128 self.f.write(sep)
129 self.preorder(n)
130 sep = ", *"
131 pass
132 self.prune()
133 return
134
135 self.n_build_tuple_unpack_with_call = build_unpack_tuple_with_call
136

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
preorderMethod · 0.45

Tested by

no test coverage detected