| | |
| | | from log_module.log import logger_l2_process_time, logger_debug |
| | | |
| | | |
| | | _dict = {} |
| | | |
| | | class TestInstance: |
| | | __instance = None |
| | | |
| | | def __new__(cls, *args, **kwargs): |
| | | if not cls.__instance: |
| | | cls.__instance = super(TestInstance, cls).__new__(cls, *args, **kwargs) |
| | | print(cls.__instance) |
| | | return cls.__instance |
| | | # def __new__(cls, *args, **kwargs): |
| | | # if not cls.__instance: |
| | | # cls.__instance = super(TestInstance, cls).__new__(cls, *args, **kwargs) |
| | | # print(cls.__instance) |
| | | # return cls.__instance |
| | | |
| | | def test(self): |
| | | i=2 |
| | | i+=1 |
| | | i=1 |
| | | _dict["test"]=i+2 |
| | | |
| | | |
| | | _dict = {} |
| | | |
| | | |
| | | |
| | | def test_time(instance, i): |