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

Method truncate

tools/python-3.11.9-amd64/Lib/_pyio.py:392–398  ·  view source on GitHub ↗

Truncate file to size bytes. Size defaults to the current IO position as reported by tell(). Return the new size.

(self, pos=None)

Source from the content-addressed store, hash-verified

390 return self.seek(0, 1)
391
392 def truncate(self, pos=None):
393 """Truncate file to size bytes.
394
395 Size defaults to the current IO position as reported by tell(). Return
396 the new size.
397 """
398 self._unsupported("truncate")
399
400 ### Flush and close ###
401

Callers 4

truncateMethod · 0.45
truncateMethod · 0.45
truncateMethod · 0.45
truncateMethod · 0.45

Calls 1

_unsupportedMethod · 0.95

Tested by

no test coverage detected