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

Method __init__

Lib/test/test_poplib.py:211–221  ·  view source on GitHub ↗
(self, address, af=socket.AF_INET)

Source from the content-addressed store, hash-verified

209 handler = DummyPOP3Handler
210
211 def __init__(self, address, af=socket.AF_INET):
212 threading.Thread.__init__(self)
213 asyncore.dispatcher.__init__(self)
214 self.daemon = True
215 self.create_socket(af, socket.SOCK_STREAM)
216 self.bind(address)
217 self.listen(5)
218 self.active = False
219 self.active_lock = threading.Lock()
220 self.host, self.port = self.socket.getsockname()[:2]
221 self.handler_instance = None
222
223 def start(self):
224 assert not self.active

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 5

LockMethod · 0.80
create_socketMethod · 0.45
bindMethod · 0.45
listenMethod · 0.45
getsocknameMethod · 0.45

Tested by

no test coverage detected