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

Method make_function

uncompyle6/semantics/pysource.py:559–567  ·  view source on GitHub ↗
(self, node, is_lambda, nested=1, code_node=None, annotate=None)

Source from the content-addressed store, hash-verified

557 # Python changes make function this much that we need at least 3 different routines,
558 # and probably more in the future.
559 def make_function(self, node, is_lambda, nested=1, code_node=None, annotate=None):
560 if self.version <= (1, 2):
561 make_function1(self, node, is_lambda, nested, code_node)
562 elif self.version <= (2, 7):
563 make_function2(self, node, is_lambda, nested, code_node)
564 elif (3, 0) <= self.version < (3, 6):
565 make_function3(self, node, is_lambda, nested, code_node)
566 elif self.version >= (3, 6):
567 make_function36(self, node, is_lambda, nested, code_node)
568
569 def print_super_classes(self, node):
570 if not (node == "tuple"):

Callers 3

n_lambda_bodyMethod · 0.80
n_mkfuncMethod · 0.80
n_mkfuncMethod · 0.80

Calls 4

make_function1Function · 0.90
make_function2Function · 0.90
make_function3Function · 0.90
make_function36Function · 0.90

Tested by

no test coverage detected