MCPcopy Index your code
hub / github.com/RustPython/RustPython / truncate

Method truncate

Lib/doctest.py:293–295  ·  view source on GitHub ↗
(self, size=None)

Source from the content-addressed store, hash-verified

291 return result
292
293 def truncate(self, size=None):
294 self.seek(size)
295 StringIO.truncate(self)
296
297# Worst-case linear-time ellipsis matching.
298def _ellipsis_match(want, got):

Callers 1

__runMethod · 0.45

Calls 1

seekMethod · 0.45

Tested by

no test coverage detected