MCPcopy Index your code
hub / github.com/python/cpython / group_to_variable_name

Method group_to_variable_name

Tools/clinic/libclinic/clanguage.py:251–253  ·  view source on GitHub ↗
(group: int)

Source from the content-addressed store, hash-verified

249
250 @staticmethod
251 def group_to_variable_name(group: int) -> str:
252 adjective = "left_" if group < 0 else "right_"
253 return "group_" + adjective + str(abs(group))
254
255 def render_option_group_parsing(
256 self,

Callers 2

render_functionMethod · 0.95

Calls 2

strFunction · 0.85
absFunction · 0.85

Tested by

no test coverage detected