MCPcopy Index your code
hub / github.com/rocky/python-uncompyle6 / n_list_afor

Function n_list_afor

uncompyle6/semantics/customize38.py:268–283  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

266 self.n_try_except38r3 = try_except38r3
267
268 def n_list_afor(node):
269 if len(node) == 2:
270 # list_afor ::= get_iter list_afor
271 self.comprehension_walk_newer(node, 0)
272 else:
273 list_iter_index = 2 if node[2] == "list_iter" else 3
274 self.template_engine(
275 (
276 " async for %[1]{%c} in %c%[1]{%c}",
277 (1, "store"),
278 (0, "get_aiter"),
279 (list_iter_index, "list_iter"),
280 ),
281 node,
282 )
283 self.prune()
284
285 self.n_list_afor = n_list_afor
286

Callers

nothing calls this directly

Calls 2

template_engineMethod · 0.45

Tested by

no test coverage detected