MCPcopy Create free account
hub / github.com/RustPython/RustPython / Gh6588

Class Gh6588

extra_tests/snippets/stdlib_io.py:63–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62
63class Gh6588:
64 def __init__(self):
65 self.textio = None
66 self.closed = False
67
68 def writable(self):
69 return True
70
71 def readable(self):
72 return False
73
74 def seekable(self):
75 return False
76
77 def write(self, data):
78 self.textio.reconfigure(encoding="utf-8")
79 return len(data)
80
81
82raw = Gh6588()

Callers 1

stdlib_io.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected