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

Method __new__

Lib/test/test__interpchannels.py:1416–1435  ·  view source on GitHub ↗
(cls, end, interp, other, extra, creator)

Source from the content-addressed store, hash-verified

1414 QUICK = False
1415
1416 def __new__(cls, end, interp, other, extra, creator):
1417 assert end in ('send', 'recv')
1418 if cls.QUICK:
1419 known = {}
1420 else:
1421 interp = Interpreter.from_raw(interp)
1422 other = Interpreter.from_raw(other)
1423 extra = Interpreter.from_raw(extra)
1424 known = {
1425 interp.name: interp,
1426 other.name: other,
1427 extra.name: extra,
1428 }
1429 if not creator:
1430 creator = 'same'
1431 self = super().__new__(cls, end, interp, other, extra, creator)
1432 self._prepped = set()
1433 self._state = ChannelState()
1434 self._known = known
1435 return self
1436
1437 @property
1438 def state(self):

Callers

nothing calls this directly

Calls 5

superClass · 0.85
setFunction · 0.85
ChannelStateClass · 0.85
from_rawMethod · 0.45
__new__Method · 0.45

Tested by

no test coverage detected