MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / truncate

Method truncate

tools/python-3.11.9-amd64/Lib/_pyio.py:2439–2443  ·  view source on GitHub ↗
(self, pos=None)

Source from the content-addressed store, hash-verified

2437 decoder.setstate(saved_state)
2438
2439 def truncate(self, pos=None):
2440 self.flush()
2441 if pos is None:
2442 pos = self.tell()
2443 return self.buffer.truncate(pos)
2444
2445 def detach(self):
2446 if self.buffer is None:

Callers

nothing calls this directly

Calls 3

flushMethod · 0.95
tellMethod · 0.95
truncateMethod · 0.45

Tested by

no test coverage detected