MCPcopy 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

closeMethod · 0.45
getbufferMethod · 0.45

Tested by

no test coverage detected