@@ -172,7 +172,7 @@ _pyjlset_isdisjoint(x::AbstractSet, yso::PyPtr) = begin
172172 r = PyObject_TryConvert (yo, eltype (x))
173173 r == - 1 && return - 1
174174 r == 0 && return 1
175- y == takeresult (eltype (x))
175+ y = takeresult (eltype (x))
176176 y in x ? 0 : 1
177177 end
178178 r == - 1 ? PyNULL : r == 0 ? PyObject_From (false ) : PyObject_From (true )
@@ -189,99 +189,99 @@ const PyJuliaSetValue_Type = LazyPyObject() do
189189 PyMethodDef (
190190 name = cacheptr! (c, " add" ),
191191 flags = Py_METH_O,
192- meth = @cfunctionOO (pyjlset_add),
192+ meth = @cfunctionOOO (pyjlset_add),
193193 ),
194194 PyMethodDef (
195195 name = cacheptr! (c, " clear" ),
196196 flags = Py_METH_NOARGS,
197- meth = @cfunctionOO (pyjlset_clear),
197+ meth = @cfunctionOOO (pyjlset_clear),
198198 ),
199199 PyMethodDef (
200200 name = cacheptr! (c, " copy" ),
201201 flags = Py_METH_NOARGS,
202- meth = @cfunctionOO (pyjlset_copy),
202+ meth = @cfunctionOOO (pyjlset_copy),
203203 ),
204204 PyMethodDef (
205205 name = cacheptr! (c, " difference" ),
206- flags = Py_METH_NOARGS ,
207- meth = @cfunctionOO (pyjlset_difference),
206+ flags = Py_METH_O ,
207+ meth = @cfunctionOOO (pyjlset_difference),
208208 ),
209209 PyMethodDef (
210210 name = cacheptr! (c, " difference_update" ),
211211 flags = Py_METH_O,
212- meth = @cfunctionOO (pyjlset_difference_update),
212+ meth = @cfunctionOOO (pyjlset_difference_update),
213213 ),
214214 PyMethodDef (
215215 name = cacheptr! (c, " discard" ),
216216 flags = Py_METH_O,
217- meth = @cfunctionOO (pyjlset_discard),
217+ meth = @cfunctionOOO (pyjlset_discard),
218218 ),
219219 PyMethodDef (
220220 name = cacheptr! (c, " intersection" ),
221221 flags = Py_METH_O,
222- meth = @cfunctionOO (pyjlset_intersection),
222+ meth = @cfunctionOOO (pyjlset_intersection),
223223 ),
224224 PyMethodDef (
225225 name = cacheptr! (c, " intersection_update" ),
226226 flags = Py_METH_O,
227- meth = @cfunctionOO (pyjlset_intersection_update),
227+ meth = @cfunctionOOO (pyjlset_intersection_update),
228228 ),
229229 PyMethodDef (
230230 name = cacheptr! (c, " isdisjoint" ),
231231 flags = Py_METH_O,
232- meth = @cfunctionOO (pyjlset_isdisjoint),
232+ meth = @cfunctionOOO (pyjlset_isdisjoint),
233233 ),
234234 # PyMethodDef(
235235 # name = cacheptr!(c, "issubset"),
236236 # flags = Py_METH_O,
237- # meth = @cfunctionOO (pyjlset_issubset),
237+ # meth = @cfunctionOOO (pyjlset_issubset),
238238 # ),
239239 # PyMethodDef(
240240 # name = cacheptr!(c, "issuperset"),
241241 # flags = Py_METH_O,
242- # meth = @cfunctionOO (pyjlset_issuperset),
242+ # meth = @cfunctionOOO (pyjlset_issuperset),
243243 # ),
244244 PyMethodDef (
245245 name = cacheptr! (c, " pop" ),
246246 flags = Py_METH_NOARGS,
247- meth = @cfunctionOO (pyjlset_pop),
247+ meth = @cfunctionOOO (pyjlset_pop),
248248 ),
249249 PyMethodDef (
250250 name = cacheptr! (c, " remove" ),
251251 flags = Py_METH_O,
252- meth = @cfunctionOO (pyjlset_remove),
252+ meth = @cfunctionOOO (pyjlset_remove),
253253 ),
254254 PyMethodDef (
255255 name = cacheptr! (c, " symmetric_difference" ),
256256 flags = Py_METH_O,
257- meth = @cfunctionOO (pyjlset_symmetric_difference),
257+ meth = @cfunctionOOO (pyjlset_symmetric_difference),
258258 ),
259259 PyMethodDef (
260260 name = cacheptr! (c, " symmetric_difference_update" ),
261261 flags = Py_METH_O,
262- meth = @cfunctionOO (pyjlset_symmetric_difference_update),
262+ meth = @cfunctionOOO (pyjlset_symmetric_difference_update),
263263 ),
264264 PyMethodDef (
265265 name = cacheptr! (c, " union" ),
266266 flags = Py_METH_O,
267- meth = @cfunctionOO (pyjlset_union),
267+ meth = @cfunctionOOO (pyjlset_union),
268268 ),
269269 PyMethodDef (
270270 name = cacheptr! (c, " update" ),
271271 flags = Py_METH_O,
272- meth = @cfunctionOO (pyjlset_update),
272+ meth = @cfunctionOOO (pyjlset_update),
273273 ),
274274 PyMethodDef (),
275275 ]),
276276 # as_number = cacheptr!(c, fill(PyNumberMethods(
277- # or = @cfunctionOO (pyjlset_or),
278- # and = @cfunctionOO (pyjlset_and),
279- # xor = @cfunctionOO (pyjlset_xor),
280- # subtract = @cfunctionOO (pyjlset_subtract),
281- # inplace_or = @cfunctionOO (pyjlset_ior),
282- # inplace_and = @cfunctionOO (pyjlset_iand),
283- # inplace_xor = @cfunctionOO (pyjlset_ixor),
284- # inplace_subtract = @cfunctionOO (pyjlset_isubtract),
277+ # or = @cfunctionOOO (pyjlset_or),
278+ # and = @cfunctionOOO (pyjlset_and),
279+ # xor = @cfunctionOOO (pyjlset_xor),
280+ # subtract = @cfunctionOOO (pyjlset_subtract),
281+ # inplace_or = @cfunctionOOO (pyjlset_ior),
282+ # inplace_and = @cfunctionOOO (pyjlset_iand),
283+ # inplace_xor = @cfunctionOOO (pyjlset_ixor),
284+ # inplace_subtract = @cfunctionOOO (pyjlset_isubtract),
285285 # ))),
286286 ))))
287287 err = PyType_Ready (ptr)
0 commit comments