Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jack-Lee-Hiter/AlgorithmsByPython
/ MyClass3
Class
MyClass3
Target Offer/Singleton.py:73–76 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
71
return
getinstance
72
@singleton
73
class
MyClass3(object):
74
a = 1
75
def
__init__(self, x = 0):
76
self.x = x
77
78
one = MyClass3()
79
two = MyClass3()
Callers
1
Singleton.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected