MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

Lib/multiprocessing/connection.py:118–127  ·  view source on GitHub ↗
(self, handle, readable=True, writable=True)

Source from the content-addressed store, hash-verified

116 _handle = None
117
118 def __init__(self, handle, readable=True, writable=True):
119 handle = handle.__index__()
120 if handle < 0:
121 raise ValueError("invalid handle")
122 if not readable and not writable:
123 raise ValueError(
124 "at least one of `readable` and `writable` must be True")
125 self._handle = handle
126 self._readable = readable
127 self._writable = writable
128
129 # XXX should we use util.Finalize instead of a __del__?
130

Callers

nothing calls this directly

Calls 1

__index__Method · 0.45

Tested by

no test coverage detected