Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __buffer__
Method
__buffer__
Lib/test/test_memoryio.py:593–595 ·
view source on GitHub ↗
(self, flags)
Source
from the content-addressed store, hash-verified
591
def
test_write_concurrent_close(self):
592
class
B:
593
def
__buffer__(self, flags):
594
memio.close()
595
return
memoryview(b
"A"
)
596
597
memio = self.ioclass()
598
self.assertRaises(ValueError, memio.write, B())
Callers
nothing calls this directly
Calls
2
close
Method · 0.45
getbuffer
Method · 0.45
Tested by
no test coverage detected