@@ -65,36 +65,36 @@ def ITestComServer__get_array(self, this, parray):
65
65
# Hm, why is assignment to value needed?
66
66
67
67
# these leak
68
- ## parray[0].value = (1, "2", None, 3.14)
69
- ## parray[0].value = (1, "2", None)
68
+ # parray[0].value = (1, "2", None, 3.14)
69
+ # parray[0].value = (1, "2", None)
70
70
71
- ## parray[0].value = ((1, 2, 3), (4, 5, 6), (7, 8, 9))
72
- ## parray[0].value = (1,), (4,)
71
+ # parray[0].value = ((1, 2, 3), (4, 5, 6), (7, 8, 9))
72
+ # parray[0].value = (1,), (4,)
73
73
74
- ## parray[0].value = (), ()
75
- ## parray[0].value = (), 0
74
+ # parray[0].value = (), ()
75
+ # parray[0].value = (), 0
76
76
77
77
# leakage
78
- ## parray[0].value = (((127900.0, None, 2620),
79
- ## (127875.0, None, 2335),
80
- ## (127675.0, 1071, None)),
81
- ## 127800.0)
78
+ # parray[0].value = (((127900.0, None, 2620),
79
+ # (127875.0, None, 2335),
80
+ # (127675.0, 1071, None)),
81
+ # 127800.0)
82
82
83
83
# reported *no* leakage, but leaks anyway
84
- ## parray[0].value = ((128000.0, None, 2576),
85
- ## (127975.0, None, 1923),
86
- ## (127950.0, None, 1734))
84
+ # parray[0].value = ((128000.0, None, 2576),
85
+ # (127975.0, None, 1923),
86
+ # (127950.0, None, 1734))
87
87
88
88
# these don't leak
89
- ## parray[0].value = (1, 2, 3)
90
- ## parray[0].value = (1, 2, None)
91
- ## parray[0].value = (1, 3.14)
92
- ## parray[0].value = [1, "(1, 2, 3)"]
93
- ## parray[0].value = (1, "2")
94
- ## parray[0].value = [1, "2"]
95
- ## parray[0].value = (None, None, None)
89
+ # parray[0].value = (1, 2, 3)
90
+ # parray[0].value = (1, 2, None)
91
+ # parray[0].value = (1, 3.14)
92
+ # parray[0].value = [1, "(1, 2, 3)"]
93
+ # parray[0].value = (1, "2")
94
+ # parray[0].value = [1, "2"]
95
+ # parray[0].value = (None, None, None)
96
96
97
- ## parray[0].value = (),
97
+ # parray[0].value = (),
98
98
99
99
return S_OK
100
100
@@ -124,25 +124,25 @@ def ITestComServer__set_name(self, this, name):
124
124
self ._name = name
125
125
return S_OK
126
126
127
- ## def ITestComServer_SetName(self, this, name):
128
- ## self._name = name
129
- ## return S_OK
127
+ # def ITestComServer_SetName(self, this, name):
128
+ # self._name = name
129
+ # return S_OK
130
130
131
131
def ITestComServer_sEtNaMe (self , this , name ):
132
132
# the method is spelled in a funny way to check case
133
133
# insensitivity when implementing COM methods.
134
134
self ._name = name
135
135
return S_OK
136
136
137
- ## [id(18), helpstring("a method with [in] and [out] args in mixed order")]
138
- ## HRESULT MixedInOut([in] int a, [out] int *b, [in] int c, [out] int *d);
137
+ # [id(18), helpstring("a method with [in] and [out] args in mixed order")]
138
+ # HRESULT MixedInOut([in] int a, [out] int *b, [in] int c, [out] int *d);
139
139
def MixedInOut (self , a , c ):
140
140
return a + 1 , c + 1
141
141
142
142
if __name__ == "__main__" :
143
143
try :
144
144
from comtypes .server .register import UseCommandLine
145
- ## logging.basicConfig(level=logging.DEBUG)
145
+ # logging.basicConfig(level=logging.DEBUG)
146
146
UseCommandLine (TestComServer )
147
147
except Exception :
148
148
import traceback
0 commit comments