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

Class Repeat1

Tools/peg_generator/pegen/grammar.py:283–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281
282
283class Repeat1(Repeat):
284 def __str__(self) -> str:
285 s = str(self.node)
286 # TODO: Decide whether to use (X)+ or X+ based on type of X
287 if " " in s:
288 return f"({s})+"
289 else:
290 return f"{s}+"
291
292 def __repr__(self) -> str:
293 return f"Repeat1({self.node!r})"
294
295
296class Gather(Repeat):

Callers 1

itemMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…