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

Method __init__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

__index__Method · 0.45

Tested by

no test coverage detected