Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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.
298
def
_ellipsis_match(want, got):
Callers
1
__run
Method · 0.45
Calls
1
seek
Method · 0.45
Tested by
no test coverage detected