MCPcopy Create free account
hub / github.com/UndCover/PyramidStore / __new__

Method __new__

tutorial/base/spider.py:11–16  ·  view source on GitHub ↗
(cls, *args, **kwargs)

Source from the content-addressed store, hash-verified

9class Spider(metaclass=ABCMeta):
10 _instance = None
11 def __new__(cls, *args, **kwargs):
12 if cls._instance:
13 return cls._instance
14 else:
15 cls._instance = super().__new__(cls)
16 return cls._instance
17 @abstractmethod
18 def init(self,extend=""):pass
19 @abstractmethod

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected