MCPcopy Index your code
hub / github.com/python/cpython / BufferedWriter

Class BufferedWriter

Lib/test/test_io/test_textio.py:1028–1034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1026 # on the underlying binary buffered object.
1027 flush_called, write_called = [], []
1028 class BufferedWriter(self.BufferedWriter):
1029 def flush(self, *args, **kwargs):
1030 flush_called.append(True)
1031 return super().flush(*args, **kwargs)
1032 def write(self, *args, **kwargs):
1033 write_called.append(True)
1034 return super().write(*args, **kwargs)
1035
1036 rawio = self.BytesIO()
1037 data = b"a"

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…