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

Method __init__

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

Source from the content-addressed store, hash-verified

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