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

Method call_fn_name

uncompyle6/parsers/parse3.py:507–512  ·  view source on GitHub ↗

Customize CALL_FUNCTION to add the number of positional arguments

(token)

Source from the content-addressed store, hash-verified

505
506 @staticmethod
507 def call_fn_name(token):
508 """Customize CALL_FUNCTION to add the number of positional arguments"""
509 if token.attr is not None:
510 return "%s_%i" % (token.kind, token.attr)
511 else:
512 return "%s_0" % (token.kind)
513
514 def custom_build_class_rule(self, opname, i, token, tokens, customize, is_pypy):
515 """

Callers 4

custom_classfunc_ruleMethod · 0.95
custom_classfunc_ruleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected