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

Method stop

Lib/pydoc.py:2419–2427  ·  view source on GitHub ↗

Stop the server and this thread nicely

(self)

Source from the content-addressed store, hash-verified

2417 self.url = 'http://%s:%d/' % (self.host, self.port)
2418
2419 def stop(self):
2420 """Stop the server and this thread nicely"""
2421 self.docserver.quit = True
2422 self.join()
2423 # explicitly break a reference cycle: DocServer.callback
2424 # has indirectly a reference to ServerThread.
2425 self.docserver = None
2426 self.serving = False
2427 self.url = None
2428
2429 thread = ServerThread(urlhandler, hostname, port)
2430 thread.start()

Callers 4

browseFunction · 0.45
benchmark_memoryMethod · 0.45
measure_peak_memoryMethod · 0.45
stopClickedMethod · 0.45

Calls 1

joinMethod · 0.45

Tested by 1

stopClickedMethod · 0.36