MCPcopy Create free account
hub / github.com/ZiniuLu/Python-100-Days / __init__

Method __init__

Day66-75/code/main_redis.py:97–99  ·  view source on GitHub ↗
(self, name, spider)

Source from the content-addressed store, hash-verified

95class SpiderThread(Thread):
96
97 def __init__(self, name, spider):
98 super().__init__(name=name, daemon=True)
99 self.spider = spider
100
101 def run(self):
102 redis_client = redis.Redis(host='1.2.3.4', port=6379, password='1qaz2wsx')

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected