Lines Matching refs:cls
57 def __call__(cls, *lstArgs, **dictArgs): argument
63 def getInstance(cls, *lstArgs): argument
69 if cls._isInstantiated():
73 if len(lstArgs) != cls._getConstructionArgCountNotCountingSelf():
75 instance = cls.__new__(cls)
77 cls.cInstance = instance
78 return cls.cInstance
81 def _isInstantiated(cls): argument
82 return hasattr(cls, 'cInstance')
85 def _getConstructionArgCountNotCountingSelf(cls): argument
86 return cls.__init__.im_func.func_code.co_argcount - 1
89 def _forgetClassInstanceReferenceForTesting(cls): argument
99 delattr(cls,'cInstance')
103 for baseClass in cls.__bases__: