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

Method truncate

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

Source from the content-addressed store, hash-verified

1453 return BufferedReader.tell(self)
1454
1455 def truncate(self, pos=None):
1456 if pos is None:
1457 pos = self.tell()
1458 # Use seek to flush the read buffer.
1459 return BufferedWriter.truncate(self, pos)
1460
1461 def read(self, size=None):
1462 if size is None:

Callers

nothing calls this directly

Calls 2

tellMethod · 0.95
truncateMethod · 0.45

Tested by

no test coverage detected