MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / FactorizeThread

Class FactorizeThread

example_code/item_068.py:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75from threading import Thread
76
77class FactorizeThread(Thread):
78 def __init__(self, number):
79 super().__init__()
80 self.number = number
81
82 def run(self):
83 self.factors = list(factorize(self.number))
84
85
86print("Example 4")

Callers 1

item_068.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected