MCPcopy Create free account
hub / github.com/ActiveState/code / split

Method split

recipes/Python/577469_Evaluator_20/recipe-577469.py:167–172  ·  view source on GitHub ↗

Split expression on rightmost symbol.

(cls, expression)

Source from the content-addressed store, hash-verified

165
166 @classmethod
167 def split(cls, expression):
168 "Split expression on rightmost symbol."
169 tail = cls.__split(expression)
170 if tail:
171 symbol, right = tail
172 return expression[:-sum(map(len, tail))], symbol, right
173
174 @classmethod
175 def __split(cls, expression):

Callers 15

mainFunction · 0.45
recipe-577463.pyFile · 0.45
NamedSequencesFunction · 0.45
recipe-577413.pyFile · 0.45
ExpandFunction · 0.45
recipe-577439.pyFile · 0.45
formatSrtTimeFunction · 0.45
mainFunction · 0.45
ExpandFunction · 0.45
BuildFunction · 0.45
recipe-577462.pyFile · 0.45
getColumnsFunction · 0.45

Calls 3

mapFunction · 0.85
__splitMethod · 0.80
sumFunction · 0.50

Tested by

no test coverage detected