Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ mutation
Method
mutation
Lib/test/test_io/test_memoryio.py:892–893 ·
view source on GitHub ↗
(memio)
Source
from the content-addressed store, hash-verified
890
def
test_cow_truncate(self):
891
# Ensure truncate causes a copy.
892
def
mutation(memio):
893
memio.truncate(1)
894
self._test_cow_mutation(mutation)
895
896
@support.cpython_only
Callers
nothing calls this directly
Calls
4
truncate
Method · 0.45
seek
Method · 0.45
write
Method · 0.45
__setstate__
Method · 0.45
Tested by
no test coverage detected