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

Method __split

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

Private class method: help with split.

(cls, expression)

Source from the content-addressed store, hash-verified

173
174 @classmethod
175 def __split(cls, expression):
176 "Private class method: help with split."
177 for symbol in cls.__operators:
178 if symbol in expression:
179 right = expression.rsplit(symbol, 1)[1]
180 tail = cls.__split(right)
181 if tail is None:
182 return symbol, right
183 return tail
184
185################################################################################
186

Callers 1

splitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected