Selaa lähdekoodia

auto commit

master
jfinn 2 vuotta sitten
vanhempi
commit
6032628c17
1 muutettua tiedostoa jossa 37 lisäystä ja 1 poistoa
  1. 37
    1
      wsps/tasks_loop.py

+ 37
- 1
wsps/tasks_loop.py Näytä tiedosto

@@ -8,4 +8,40 @@ import copy
8 8
 import json
9 9
 
10 10
 import traceback
11
-import inspect
11
+import inspect
12
+
13
+
14
+'''
15
+	umod
16
+# '''
17
+
18
+p=print
19
+
20
+async def anop(*a,**kw):pass
21
+def nop(*a,**kw):pass
22
+
23
+
24
+'''
25
+# '''
26
+
27
+
28
+# GCLMixin
29
+class globCL():
30
+	init_cnt = 0
31
+	def __init__(self,*a,**kw):
32
+		# for now we are not going to do any weird class stuff
33
+		cls = self.__class__
34
+		cls.init_cnt += 1
35
+
36
+		pass
37
+	async def persistent_loop(self,*a,**kw):
38
+		pass
39
+	def run_persistent_loop(self,*a,**kw):
40
+		pass
41
+
42
+
43
+p("300 globCL.init_cnt:",globCL.init_cnt)
44
+glob_cl_a =  globCL()
45
+p("400 globCL.init_cnt:",globCL.init_cnt)
46
+glob_cl_b =  globCL()
47
+p("500 globCL.init_cnt:",globCL.init_cnt)

Loading…
Peruuta
Tallenna