MCPcopy Create free account
hub / github.com/dianping/cat / Container

Class Container

lib/python/src/cat/container.py:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37class Container(object):
38
39 __instances = {}
40
41 def put(self, name, instance):
42 self.__instances[name] = instance
43
44 def get(self, name):
45 return self.__instances.get(name)
46
47 def contains(self, name):
48 return name in self.__instances
49
50
51container = Container()

Callers 1

container.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected