From 3d95c35669ca0f190cb4aadc638a6fe37b9edf2b Mon Sep 17 00:00:00 2001 From: Samuele Kaplun Date: Tue, 2 Dec 2014 14:39:15 +0100 Subject: [PATCH] Comparison with other types * Comparing an intbitset with anything that is not an intbitset should behave as a set would. E.g. intbitset([1,2,3]) == set([1,2,3]) is False. (closes #18) Signed-off-by: Samuele Kaplun Reported-by: Dimitrios Semitsoglou-Tsiapos --- src/intbitset.c | 1919 ++++++++++++++++++++------------------- src/intbitset.pyx | 6 +- tests/test_intbitset.py | 9 + 3 files changed, 991 insertions(+), 943 deletions(-) diff --git a/src/intbitset.c b/src/intbitset.c index 7b4bef7..8bc6eaa 100644 --- a/src/intbitset.c +++ b/src/intbitset.c @@ -1,4 +1,4 @@ -/* Generated by Cython 0.20.2 on Tue Dec 2 14:12:09 2014 */ +/* Generated by Cython 0.20.2 on Mon Dec 8 22:23:13 2014 */ #define PY_SSIZE_T_CLEAN #ifndef CYTHON_USE_PYLONG_INTERNALS @@ -537,7 +537,7 @@ struct __pyx_obj_9intbitset_intbitset; struct __pyx_obj_9intbitset_intbitset_iterator; struct __pyx_opt_args_9intbitset_9intbitset_extract_finite_list; -/* "intbitset.pyx":745 +/* "intbitset.pyx":747 * return self.bitset.trailing_bits != 0 * * cpdef extract_finite_list(intbitset self, int up_to=-1): # <<<<<<<<<<<<<< @@ -565,7 +565,7 @@ struct __pyx_obj_9intbitset_intbitset { }; -/* "intbitset.pyx":781 +/* "intbitset.pyx":783 * cdef object __weakref__ * * cdef class intbitset_iterator: # <<<<<<<<<<<<<< @@ -888,6 +888,7 @@ static PyObject *__pyx_builtin_Exception; static PyObject *__pyx_builtin_max; static PyObject *__pyx_builtin_OverflowError; static PyObject *__pyx_builtin_TypeError; +static PyObject *__pyx_builtin_NotImplemented; static PyObject *__pyx_builtin_IndexError; static PyObject *__pyx_builtin_range; static PyObject *__pyx_builtin_KeyError; @@ -900,7 +901,7 @@ static int __pyx_pf_9intbitset_9intbitset_4__contains__(struct __pyx_obj_9intbit #if PY_MAJOR_VERSION < 3 static int __pyx_pf_9intbitset_9intbitset_6__cmp__(CYTHON_UNUSED struct __pyx_obj_9intbitset_intbitset *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_9intbitset_intbitset *__pyx_v_rhs); /* proto */ #endif -static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_self, struct __pyx_obj_9intbitset_intbitset *__pyx_v_rhs, int __pyx_v_op); /* proto */ +static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_rhs, int __pyx_v_op); /* proto */ static Py_ssize_t __pyx_pf_9intbitset_9intbitset_10__len__(struct __pyx_obj_9intbitset_intbitset *__pyx_v_self); /* proto */ static Py_hash_t __pyx_pf_9intbitset_9intbitset_12__hash__(struct __pyx_obj_9intbitset_intbitset *__pyx_v_self); /* proto */ static int __pyx_pf_9intbitset_9intbitset_14__nonzero__(struct __pyx_obj_9intbitset_intbitset *__pyx_v_self); /* proto */ @@ -1031,6 +1032,7 @@ static char __pyx_k_rhs_must_be_s[] = "rhs must be <= %s"; static char __pyx_k_sanity_checks[] = "sanity_checks"; static char __pyx_k_trailing_bits[] = "trailing_bits"; static char __pyx_k_AttributeError[] = "AttributeError"; +static char __pyx_k_NotImplemented[] = "NotImplemented"; static char __pyx_k_Elements_must_s[] = "Elements must <= %s"; static char __pyx_k_get_wordbitsize[] = "get_wordbitsize"; static char __pyx_k_get_wordbytsize[] = "get_wordbytsize"; @@ -1082,6 +1084,7 @@ static PyObject *__pyx_kp_s_It_s_impossible_to_retrieve_a_li; static PyObject *__pyx_n_s_KeyError; static PyObject *__pyx_n_s_MemoryError; static PyObject *__pyx_kp_s_Negative_numbers_not_allowed; +static PyObject *__pyx_n_s_NotImplemented; static PyObject *__pyx_n_s_OverflowError; static PyObject *__pyx_n_s_PY3; static PyObject *__pyx_n_s_StopIteration; @@ -3347,7 +3350,7 @@ static int __pyx_pf_9intbitset_9intbitset_6__cmp__(CYTHON_UNUSED struct __pyx_ob * def __cmp__(self not None, intbitset rhs not None): * raise TypeError("cannot compare intbitset using cmp()") # <<<<<<<<<<<<<< * - * def __richcmp__(self not None, intbitset rhs not None, int op): + * def __richcmp__(self not None, rhs, int op): */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); @@ -3376,9 +3379,9 @@ static int __pyx_pf_9intbitset_9intbitset_6__cmp__(CYTHON_UNUSED struct __pyx_ob /* "intbitset.pyx":271 * raise TypeError("cannot compare intbitset using cmp()") * - * def __richcmp__(self not None, intbitset rhs not None, int op): # <<<<<<<<<<<<<< + * def __richcmp__(self not None, rhs, int op): # <<<<<<<<<<<<<< * cdef short unsigned int tmp - * tmp = intBitSetCmp((self).bitset, rhs.bitset) + * if not isinstance(self, intbitset) or not isinstance(rhs, intbitset): */ /* Python wrapper */ @@ -3393,8 +3396,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_9__richcmp__(PyObject *__pyx_v_s if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_r = __pyx_pf_9intbitset_9intbitset_8__richcmp__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_rhs), ((int)__pyx_v_op)); + __pyx_r = __pyx_pf_9intbitset_9intbitset_8__richcmp__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_rhs), ((int)__pyx_v_op)); /* function exit code */ goto __pyx_L0; @@ -3405,29 +3407,62 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_9__richcmp__(PyObject *__pyx_v_s return __pyx_r; } -static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_self, struct __pyx_obj_9intbitset_intbitset *__pyx_v_rhs, int __pyx_v_op) { +static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_rhs, int __pyx_v_op) { unsigned short __pyx_v_tmp; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; + int __pyx_t_2; + int __pyx_t_3; + PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__richcmp__", 0); /* "intbitset.pyx":273 - * def __richcmp__(self not None, intbitset rhs not None, int op): + * def __richcmp__(self not None, rhs, int op): + * cdef short unsigned int tmp + * if not isinstance(self, intbitset) or not isinstance(rhs, intbitset): # <<<<<<<<<<<<<< + * return NotImplemented + * tmp = intBitSetCmp((self).bitset, (rhs).bitset) + */ + __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_self, ((PyObject*)__pyx_ptype_9intbitset_intbitset)); + __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); + if (!__pyx_t_2) { + __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_rhs, ((PyObject*)__pyx_ptype_9intbitset_intbitset)); + __pyx_t_3 = ((!(__pyx_t_1 != 0)) != 0); + __pyx_t_1 = __pyx_t_3; + } else { + __pyx_t_1 = __pyx_t_2; + } + if (__pyx_t_1) { + + /* "intbitset.pyx":274 * cdef short unsigned int tmp - * tmp = intBitSetCmp((self).bitset, rhs.bitset) # <<<<<<<<<<<<<< + * if not isinstance(self, intbitset) or not isinstance(rhs, intbitset): + * return NotImplemented # <<<<<<<<<<<<<< + * tmp = intBitSetCmp((self).bitset, (rhs).bitset) + * if op == 0: # < + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_builtin_NotImplemented); + __pyx_r = __pyx_builtin_NotImplemented; + goto __pyx_L0; + } + + /* "intbitset.pyx":275 + * if not isinstance(self, intbitset) or not isinstance(rhs, intbitset): + * return NotImplemented + * tmp = intBitSetCmp((self).bitset, (rhs).bitset) # <<<<<<<<<<<<<< * if op == 0: # < * return tmp == 1 */ - __pyx_v_tmp = intBitSetCmp(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self)->bitset, __pyx_v_rhs->bitset); + __pyx_v_tmp = intBitSetCmp(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self)->bitset, ((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_rhs)->bitset); - /* "intbitset.pyx":274 - * cdef short unsigned int tmp - * tmp = intBitSetCmp((self).bitset, rhs.bitset) + /* "intbitset.pyx":276 + * return NotImplemented + * tmp = intBitSetCmp((self).bitset, (rhs).bitset) * if op == 0: # < # <<<<<<<<<<<<<< * return tmp == 1 * if op == 1: # <= @@ -3435,22 +3470,22 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_s __pyx_t_1 = ((__pyx_v_op == 0) != 0); if (__pyx_t_1) { - /* "intbitset.pyx":275 - * tmp = intBitSetCmp((self).bitset, rhs.bitset) + /* "intbitset.pyx":277 + * tmp = intBitSetCmp((self).bitset, (rhs).bitset) * if op == 0: # < * return tmp == 1 # <<<<<<<<<<<<<< * if op == 1: # <= * return tmp <= 1 */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_v_tmp == 1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyBool_FromLong((__pyx_v_tmp == 1)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 277; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __Pyx_GOTREF(__pyx_t_4); + __pyx_r = __pyx_t_4; + __pyx_t_4 = 0; goto __pyx_L0; } - /* "intbitset.pyx":276 + /* "intbitset.pyx":278 * if op == 0: # < * return tmp == 1 * if op == 1: # <= # <<<<<<<<<<<<<< @@ -3460,7 +3495,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_s __pyx_t_1 = ((__pyx_v_op == 1) != 0); if (__pyx_t_1) { - /* "intbitset.pyx":277 + /* "intbitset.pyx":279 * return tmp == 1 * if op == 1: # <= * return tmp <= 1 # <<<<<<<<<<<<<< @@ -3468,14 +3503,14 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_s * return tmp == 0 */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_v_tmp <= 1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 277; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyBool_FromLong((__pyx_v_tmp <= 1)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __Pyx_GOTREF(__pyx_t_4); + __pyx_r = __pyx_t_4; + __pyx_t_4 = 0; goto __pyx_L0; } - /* "intbitset.pyx":278 + /* "intbitset.pyx":280 * if op == 1: # <= * return tmp <= 1 * if op == 2: # == # <<<<<<<<<<<<<< @@ -3485,7 +3520,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_s __pyx_t_1 = ((__pyx_v_op == 2) != 0); if (__pyx_t_1) { - /* "intbitset.pyx":279 + /* "intbitset.pyx":281 * return tmp <= 1 * if op == 2: # == * return tmp == 0 # <<<<<<<<<<<<<< @@ -3493,14 +3528,14 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_s * return tmp > 0 */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_v_tmp == 0)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyBool_FromLong((__pyx_v_tmp == 0)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __Pyx_GOTREF(__pyx_t_4); + __pyx_r = __pyx_t_4; + __pyx_t_4 = 0; goto __pyx_L0; } - /* "intbitset.pyx":280 + /* "intbitset.pyx":282 * if op == 2: # == * return tmp == 0 * if op == 3: # != # <<<<<<<<<<<<<< @@ -3510,7 +3545,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_s __pyx_t_1 = ((__pyx_v_op == 3) != 0); if (__pyx_t_1) { - /* "intbitset.pyx":281 + /* "intbitset.pyx":283 * return tmp == 0 * if op == 3: # != * return tmp > 0 # <<<<<<<<<<<<<< @@ -3518,14 +3553,14 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_s * return tmp == 2 */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_v_tmp > 0)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyBool_FromLong((__pyx_v_tmp > 0)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __Pyx_GOTREF(__pyx_t_4); + __pyx_r = __pyx_t_4; + __pyx_t_4 = 0; goto __pyx_L0; } - /* "intbitset.pyx":282 + /* "intbitset.pyx":284 * if op == 3: # != * return tmp > 0 * if op == 4: # > # <<<<<<<<<<<<<< @@ -3535,7 +3570,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_s __pyx_t_1 = ((__pyx_v_op == 4) != 0); if (__pyx_t_1) { - /* "intbitset.pyx":283 + /* "intbitset.pyx":285 * return tmp > 0 * if op == 4: # > * return tmp == 2 # <<<<<<<<<<<<<< @@ -3543,14 +3578,14 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_s * return tmp in (0, 2) */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_v_tmp == 2)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyBool_FromLong((__pyx_v_tmp == 2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __Pyx_GOTREF(__pyx_t_4); + __pyx_r = __pyx_t_4; + __pyx_t_4 = 0; goto __pyx_L0; } - /* "intbitset.pyx":284 + /* "intbitset.pyx":286 * if op == 4: # > * return tmp == 2 * if op == 5: # >= # <<<<<<<<<<<<<< @@ -3560,7 +3595,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_s __pyx_t_1 = ((__pyx_v_op == 5) != 0); if (__pyx_t_1) { - /* "intbitset.pyx":285 + /* "intbitset.pyx":287 * return tmp == 2 * if op == 5: # >= * return tmp in (0, 2) # <<<<<<<<<<<<<< @@ -3577,26 +3612,26 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_s __pyx_t_1 = 0; break; } - __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __Pyx_GOTREF(__pyx_t_4); + __pyx_r = __pyx_t_4; + __pyx_t_4 = 0; goto __pyx_L0; } /* "intbitset.pyx":271 * raise TypeError("cannot compare intbitset using cmp()") * - * def __richcmp__(self not None, intbitset rhs not None, int op): # <<<<<<<<<<<<<< + * def __richcmp__(self not None, rhs, int op): # <<<<<<<<<<<<<< * cdef short unsigned int tmp - * tmp = intBitSetCmp((self).bitset, rhs.bitset) + * if not isinstance(self, intbitset) or not isinstance(rhs, intbitset): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("intbitset.intbitset.__richcmp__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -3605,7 +3640,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_8__richcmp__(PyObject *__pyx_v_s return __pyx_r; } -/* "intbitset.pyx":287 +/* "intbitset.pyx":289 * return tmp in (0, 2) * * def __len__(self not None): # <<<<<<<<<<<<<< @@ -3623,7 +3658,7 @@ static Py_ssize_t __pyx_pw_9intbitset_9intbitset_11__len__(PyObject *__pyx_v_sel __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__len__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_10__len__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self)); @@ -3641,7 +3676,7 @@ static Py_ssize_t __pyx_pf_9intbitset_9intbitset_10__len__(struct __pyx_obj_9int __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__len__", 0); - /* "intbitset.pyx":288 + /* "intbitset.pyx":290 * * def __len__(self not None): * return intBitSetGetTot(self.bitset) # <<<<<<<<<<<<<< @@ -3651,7 +3686,7 @@ static Py_ssize_t __pyx_pf_9intbitset_9intbitset_10__len__(struct __pyx_obj_9int __pyx_r = intBitSetGetTot(__pyx_v_self->bitset); goto __pyx_L0; - /* "intbitset.pyx":287 + /* "intbitset.pyx":289 * return tmp in (0, 2) * * def __len__(self not None): # <<<<<<<<<<<<<< @@ -3665,7 +3700,7 @@ static Py_ssize_t __pyx_pf_9intbitset_9intbitset_10__len__(struct __pyx_obj_9int return __pyx_r; } -/* "intbitset.pyx":290 +/* "intbitset.pyx":292 * return intBitSetGetTot(self.bitset) * * def __hash__(self not None): # <<<<<<<<<<<<<< @@ -3683,7 +3718,7 @@ static Py_hash_t __pyx_pw_9intbitset_9intbitset_13__hash__(PyObject *__pyx_v_sel __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_12__hash__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self)); @@ -3709,23 +3744,23 @@ static Py_hash_t __pyx_pf_9intbitset_9intbitset_12__hash__(struct __pyx_obj_9int int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__hash__", 0); - /* "intbitset.pyx":291 + /* "intbitset.pyx":293 * * def __hash__(self not None): * if six.PY3: # <<<<<<<<<<<<<< * return hash(PyBytes_FromStringAndSize(self.bitset.bitset, wordbytesize * (intBitSetGetTot(self.bitset) / wordbitsize + 1))) * else: */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_six); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_six); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_PY3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_PY3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { - /* "intbitset.pyx":292 + /* "intbitset.pyx":294 * def __hash__(self not None): * if six.PY3: * return hash(PyBytes_FromStringAndSize(self.bitset.bitset, wordbytesize * (intBitSetGetTot(self.bitset) / wordbitsize + 1))) # <<<<<<<<<<<<<< @@ -3741,7 +3776,7 @@ static Py_hash_t __pyx_pf_9intbitset_9intbitset_12__hash__(struct __pyx_obj_9int #ifdef WITH_THREAD PyGILState_Release(__pyx_gilstate_save); #endif - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } else if (sizeof(int) == sizeof(long) && (!(((int)-1) > 0)) && unlikely(wordbitsize == (int)-1) && unlikely(UNARY_NEG_WOULD_OVERFLOW(__pyx_t_4))) { #ifdef WITH_THREAD @@ -3751,18 +3786,18 @@ static Py_hash_t __pyx_pf_9intbitset_9intbitset_12__hash__(struct __pyx_obj_9int #ifdef WITH_THREAD PyGILState_Release(__pyx_gilstate_save); #endif - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_2 = PyBytes_FromStringAndSize(((char *)__pyx_v_self->bitset->bitset), (wordbytesize * (__Pyx_div_int(__pyx_t_4, wordbitsize) + 1))); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyBytes_FromStringAndSize(((char *)__pyx_v_self->bitset->bitset), (wordbytesize * (__Pyx_div_int(__pyx_t_4, wordbitsize) + 1))); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = PyObject_Hash(__pyx_t_2); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyObject_Hash(__pyx_t_2); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_5; goto __pyx_L0; } /*else*/ { - /* "intbitset.pyx":294 + /* "intbitset.pyx":296 * return hash(PyBytes_FromStringAndSize(self.bitset.bitset, wordbytesize * (intBitSetGetTot(self.bitset) / wordbitsize + 1))) * else: * return hash(PyString_FromStringAndSize(self.bitset.bitset, wordbytesize * (intBitSetGetTot(self.bitset) / wordbitsize + 1))) # <<<<<<<<<<<<<< @@ -3778,7 +3813,7 @@ static Py_hash_t __pyx_pf_9intbitset_9intbitset_12__hash__(struct __pyx_obj_9int #ifdef WITH_THREAD PyGILState_Release(__pyx_gilstate_save); #endif - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } else if (sizeof(int) == sizeof(long) && (!(((int)-1) > 0)) && unlikely(wordbitsize == (int)-1) && unlikely(UNARY_NEG_WOULD_OVERFLOW(__pyx_t_4))) { #ifdef WITH_THREAD @@ -3788,17 +3823,17 @@ static Py_hash_t __pyx_pf_9intbitset_9intbitset_12__hash__(struct __pyx_obj_9int #ifdef WITH_THREAD PyGILState_Release(__pyx_gilstate_save); #endif - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_2 = PyString_FromStringAndSize(((char *)__pyx_v_self->bitset->bitset), (wordbytesize * (__Pyx_div_int(__pyx_t_4, wordbitsize) + 1))); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyString_FromStringAndSize(((char *)__pyx_v_self->bitset->bitset), (wordbytesize * (__Pyx_div_int(__pyx_t_4, wordbitsize) + 1))); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = PyObject_Hash(__pyx_t_2); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyObject_Hash(__pyx_t_2); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_5; goto __pyx_L0; } - /* "intbitset.pyx":290 + /* "intbitset.pyx":292 * return intBitSetGetTot(self.bitset) * * def __hash__(self not None): # <<<<<<<<<<<<<< @@ -3818,7 +3853,7 @@ static Py_hash_t __pyx_pf_9intbitset_9intbitset_12__hash__(struct __pyx_obj_9int return __pyx_r; } -/* "intbitset.pyx":296 +/* "intbitset.pyx":298 * return hash(PyString_FromStringAndSize(self.bitset.bitset, wordbytesize * (intBitSetGetTot(self.bitset) / wordbitsize + 1))) * * def __nonzero__(self not None): # <<<<<<<<<<<<<< @@ -3836,7 +3871,7 @@ static int __pyx_pw_9intbitset_9intbitset_15__nonzero__(PyObject *__pyx_v_self) __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__nonzero__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_14__nonzero__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self)); @@ -3854,7 +3889,7 @@ static int __pyx_pf_9intbitset_9intbitset_14__nonzero__(struct __pyx_obj_9intbit __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__nonzero__", 0); - /* "intbitset.pyx":297 + /* "intbitset.pyx":299 * * def __nonzero__(self not None): * return not intBitSetEmpty(self.bitset) # <<<<<<<<<<<<<< @@ -3864,7 +3899,7 @@ static int __pyx_pf_9intbitset_9intbitset_14__nonzero__(struct __pyx_obj_9intbit __pyx_r = (!(intBitSetEmpty(__pyx_v_self->bitset) != 0)); goto __pyx_L0; - /* "intbitset.pyx":296 + /* "intbitset.pyx":298 * return hash(PyString_FromStringAndSize(self.bitset.bitset, wordbytesize * (intBitSetGetTot(self.bitset) / wordbitsize + 1))) * * def __nonzero__(self not None): # <<<<<<<<<<<<<< @@ -3878,7 +3913,7 @@ static int __pyx_pf_9intbitset_9intbitset_14__nonzero__(struct __pyx_obj_9intbit return __pyx_r; } -/* "intbitset.pyx":299 +/* "intbitset.pyx":301 * return not intBitSetEmpty(self.bitset) * * def __iadd__(self not None, rhs): # <<<<<<<<<<<<<< @@ -3896,7 +3931,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_17__iadd__(PyObject *__pyx_v_sel __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__iadd__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_16__iadd__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), ((PyObject *)__pyx_v_rhs)); @@ -3928,7 +3963,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__iadd__", 0); - /* "intbitset.pyx":301 + /* "intbitset.pyx":303 * def __iadd__(self not None, rhs): * cdef int elem * if isinstance(rhs, (int, long)): # <<<<<<<<<<<<<< @@ -3945,7 +3980,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int __pyx_t_1 = (__pyx_t_3 != 0); if (__pyx_t_1) { - /* "intbitset.pyx":302 + /* "intbitset.pyx":304 * cdef int elem * if isinstance(rhs, (int, long)): * if self.sanity_checks: # <<<<<<<<<<<<<< @@ -3955,88 +3990,88 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int __pyx_t_1 = (__pyx_v_self->sanity_checks != 0); if (__pyx_t_1) { - /* "intbitset.pyx":303 + /* "intbitset.pyx":305 * if isinstance(rhs, (int, long)): * if self.sanity_checks: * if rhs < 0: # <<<<<<<<<<<<<< * raise ValueError("Negative numbers, not allowed") * elif rhs > maxelem: */ - __pyx_t_4 = PyObject_RichCompare(__pyx_v_rhs, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_RichCompare(__pyx_v_rhs, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_1) { - /* "intbitset.pyx":304 + /* "intbitset.pyx":306 * if self.sanity_checks: * if rhs < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif rhs > maxelem: * raise OverflowError("rhs must be <= %s" % maxelem) */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":305 + /* "intbitset.pyx":307 * if rhs < 0: * raise ValueError("Negative numbers, not allowed") * elif rhs > maxelem: # <<<<<<<<<<<<<< * raise OverflowError("rhs must be <= %s" % maxelem) * intBitSetAddElem(self.bitset, rhs) */ - __pyx_t_4 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyObject_RichCompare(__pyx_v_rhs, __pyx_t_4, Py_GT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyObject_RichCompare(__pyx_v_rhs, __pyx_t_4, Py_GT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { - /* "intbitset.pyx":306 + /* "intbitset.pyx":308 * raise ValueError("Negative numbers, not allowed") * elif rhs > maxelem: * raise OverflowError("rhs must be <= %s" % maxelem) # <<<<<<<<<<<<<< * intBitSetAddElem(self.bitset, rhs) * elif isinstance(rhs, intbitset): */ - __pyx_t_5 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_rhs_must_be_s, __pyx_t_5); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_rhs_must_be_s, __pyx_t_5); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } goto __pyx_L4; } __pyx_L4:; - /* "intbitset.pyx":307 + /* "intbitset.pyx":309 * elif rhs > maxelem: * raise OverflowError("rhs must be <= %s" % maxelem) * intBitSetAddElem(self.bitset, rhs) # <<<<<<<<<<<<<< * elif isinstance(rhs, intbitset): * intBitSetIUnion(self.bitset, ( rhs).bitset) */ - __pyx_t_6 = __Pyx_PyInt_As_unsigned_int(__pyx_v_rhs); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyInt_As_unsigned_int(__pyx_v_rhs); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;} intBitSetAddElem(__pyx_v_self->bitset, __pyx_t_6); goto __pyx_L3; } - /* "intbitset.pyx":308 + /* "intbitset.pyx":310 * raise OverflowError("rhs must be <= %s" % maxelem) * intBitSetAddElem(self.bitset, rhs) * elif isinstance(rhs, intbitset): # <<<<<<<<<<<<<< @@ -4047,7 +4082,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int __pyx_t_3 = (__pyx_t_1 != 0); if (__pyx_t_3) { - /* "intbitset.pyx":309 + /* "intbitset.pyx":311 * intBitSetAddElem(self.bitset, rhs) * elif isinstance(rhs, intbitset): * intBitSetIUnion(self.bitset, ( rhs).bitset) # <<<<<<<<<<<<<< @@ -4059,7 +4094,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int } /*else*/ { - /* "intbitset.pyx":311 + /* "intbitset.pyx":313 * intBitSetIUnion(self.bitset, ( rhs).bitset) * else: * if self.sanity_checks: # <<<<<<<<<<<<<< @@ -4069,7 +4104,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int __pyx_t_3 = (__pyx_v_self->sanity_checks != 0); if (__pyx_t_3) { - /* "intbitset.pyx":312 + /* "intbitset.pyx":314 * else: * if self.sanity_checks: * for elem in rhs: # <<<<<<<<<<<<<< @@ -4080,7 +4115,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int __pyx_t_4 = __pyx_v_rhs; __Pyx_INCREF(__pyx_t_4); __pyx_t_7 = 0; __pyx_t_8 = NULL; } else { - __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_rhs); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_rhs); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = Py_TYPE(__pyx_t_4)->tp_iternext; } @@ -4088,16 +4123,16 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int if (!__pyx_t_8 && PyList_CheckExact(__pyx_t_4)) { if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_4)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else if (!__pyx_t_8 && PyTuple_CheckExact(__pyx_t_4)) { if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_4)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else { __pyx_t_5 = __pyx_t_8(__pyx_t_4); @@ -4105,17 +4140,17 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } break; } __Pyx_GOTREF(__pyx_t_5); } - __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_elem = __pyx_t_9; - /* "intbitset.pyx":313 + /* "intbitset.pyx":315 * if self.sanity_checks: * for elem in rhs: * if elem < 0: # <<<<<<<<<<<<<< @@ -4125,21 +4160,21 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int __pyx_t_3 = ((__pyx_v_elem < 0) != 0); if (__pyx_t_3) { - /* "intbitset.pyx":314 + /* "intbitset.pyx":316 * for elem in rhs: * if elem < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":315 + /* "intbitset.pyx":317 * if elem < 0: * raise ValueError("Negative numbers, not allowed") * elif elem > maxelem: # <<<<<<<<<<<<<< @@ -4149,32 +4184,32 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int __pyx_t_3 = ((__pyx_v_elem > maxelem) != 0); if (__pyx_t_3) { - /* "intbitset.pyx":316 + /* "intbitset.pyx":318 * raise ValueError("Negative numbers, not allowed") * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) # <<<<<<<<<<<<<< * intBitSetAddElem(self.bitset, elem) * else: */ - __pyx_t_5 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); - __pyx_t_10 = __Pyx_PyString_Format(__pyx_kp_s_Elements_must_be_s, __pyx_t_5); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = __Pyx_PyString_Format(__pyx_kp_s_Elements_must_be_s, __pyx_t_5); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_10); __Pyx_GIVEREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_10, 0, 0, 0); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":317 + /* "intbitset.pyx":319 * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) * intBitSetAddElem(self.bitset, elem) # <<<<<<<<<<<<<< @@ -4188,7 +4223,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int } /*else*/ { - /* "intbitset.pyx":319 + /* "intbitset.pyx":321 * intBitSetAddElem(self.bitset, elem) * else: * for elem in rhs: # <<<<<<<<<<<<<< @@ -4199,7 +4234,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int __pyx_t_4 = __pyx_v_rhs; __Pyx_INCREF(__pyx_t_4); __pyx_t_7 = 0; __pyx_t_8 = NULL; } else { - __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_rhs); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_rhs); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = Py_TYPE(__pyx_t_4)->tp_iternext; } @@ -4207,16 +4242,16 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int if (!__pyx_t_8 && PyList_CheckExact(__pyx_t_4)) { if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_4)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_10 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_10); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_10); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_10 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else if (!__pyx_t_8 && PyTuple_CheckExact(__pyx_t_4)) { if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_4)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_10); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_10); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_10 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else { __pyx_t_10 = __pyx_t_8(__pyx_t_4); @@ -4224,17 +4259,17 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } break; } __Pyx_GOTREF(__pyx_t_10); } - __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_t_10); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_t_10); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_elem = __pyx_t_9; - /* "intbitset.pyx":320 + /* "intbitset.pyx":322 * else: * for elem in rhs: * if elem < 0: # <<<<<<<<<<<<<< @@ -4244,21 +4279,21 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int __pyx_t_3 = ((__pyx_v_elem < 0) != 0); if (__pyx_t_3) { - /* "intbitset.pyx":321 + /* "intbitset.pyx":323 * for elem in rhs: * if elem < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) */ - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_10); __Pyx_Raise(__pyx_t_10, 0, 0, 0); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":322 + /* "intbitset.pyx":324 * if elem < 0: * raise ValueError("Negative numbers, not allowed") * elif elem > maxelem: # <<<<<<<<<<<<<< @@ -4268,32 +4303,32 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int __pyx_t_3 = ((__pyx_v_elem > maxelem) != 0); if (__pyx_t_3) { - /* "intbitset.pyx":323 + /* "intbitset.pyx":325 * raise ValueError("Negative numbers, not allowed") * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) # <<<<<<<<<<<<<< * intBitSetAddElem(self.bitset, elem) * return self */ - __pyx_t_10 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_10); - __pyx_t_5 = __Pyx_PyString_Format(__pyx_kp_s_Elements_must_be_s, __pyx_t_10); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyString_Format(__pyx_kp_s_Elements_must_be_s, __pyx_t_10); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_10, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_10, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":324 + /* "intbitset.pyx":326 * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) * intBitSetAddElem(self.bitset, elem) # <<<<<<<<<<<<<< @@ -4308,7 +4343,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int } __pyx_L3:; - /* "intbitset.pyx":325 + /* "intbitset.pyx":327 * raise OverflowError("Elements must be <= %s" % maxelem) * intBitSetAddElem(self.bitset, elem) * return self # <<<<<<<<<<<<<< @@ -4320,7 +4355,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; - /* "intbitset.pyx":299 + /* "intbitset.pyx":301 * return not intBitSetEmpty(self.bitset) * * def __iadd__(self not None, rhs): # <<<<<<<<<<<<<< @@ -4341,7 +4376,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_16__iadd__(struct __pyx_obj_9int return __pyx_r; } -/* "intbitset.pyx":327 +/* "intbitset.pyx":329 * return self * * def __isub__(self not None, rhs): # <<<<<<<<<<<<<< @@ -4363,7 +4398,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_19__isub__(PyObject *__pyx_v_sel __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__isub__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 329; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_18__isub__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), ((PyObject *)__pyx_v_rhs)); @@ -4395,7 +4430,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__isub__", 0); - /* "intbitset.pyx":330 + /* "intbitset.pyx":332 * """Remove all elements of another set from this set.""" * cdef int elem * if isinstance(rhs, (int, long)): # <<<<<<<<<<<<<< @@ -4412,7 +4447,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int __pyx_t_1 = (__pyx_t_3 != 0); if (__pyx_t_1) { - /* "intbitset.pyx":331 + /* "intbitset.pyx":333 * cdef int elem * if isinstance(rhs, (int, long)): * if self.sanity_checks: # <<<<<<<<<<<<<< @@ -4422,88 +4457,88 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int __pyx_t_1 = (__pyx_v_self->sanity_checks != 0); if (__pyx_t_1) { - /* "intbitset.pyx":332 + /* "intbitset.pyx":334 * if isinstance(rhs, (int, long)): * if self.sanity_checks: * if rhs < 0: # <<<<<<<<<<<<<< * raise ValueError("Negative numbers, not allowed") * elif rhs > maxelem: */ - __pyx_t_4 = PyObject_RichCompare(__pyx_v_rhs, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_RichCompare(__pyx_v_rhs, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_1) { - /* "intbitset.pyx":333 + /* "intbitset.pyx":335 * if self.sanity_checks: * if rhs < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif rhs > maxelem: * raise OverflowError("rhs must be <= %s" % maxelem) */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":334 + /* "intbitset.pyx":336 * if rhs < 0: * raise ValueError("Negative numbers, not allowed") * elif rhs > maxelem: # <<<<<<<<<<<<<< * raise OverflowError("rhs must be <= %s" % maxelem) * intBitSetDelElem(self.bitset, rhs) */ - __pyx_t_4 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyObject_RichCompare(__pyx_v_rhs, __pyx_t_4, Py_GT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyObject_RichCompare(__pyx_v_rhs, __pyx_t_4, Py_GT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { - /* "intbitset.pyx":335 + /* "intbitset.pyx":337 * raise ValueError("Negative numbers, not allowed") * elif rhs > maxelem: * raise OverflowError("rhs must be <= %s" % maxelem) # <<<<<<<<<<<<<< * intBitSetDelElem(self.bitset, rhs) * elif isinstance(rhs, intbitset): */ - __pyx_t_5 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_rhs_must_be_s, __pyx_t_5); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_rhs_must_be_s, __pyx_t_5); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } goto __pyx_L4; } __pyx_L4:; - /* "intbitset.pyx":336 + /* "intbitset.pyx":338 * elif rhs > maxelem: * raise OverflowError("rhs must be <= %s" % maxelem) * intBitSetDelElem(self.bitset, rhs) # <<<<<<<<<<<<<< * elif isinstance(rhs, intbitset): * intBitSetISub(self.bitset, ( rhs).bitset) */ - __pyx_t_6 = __Pyx_PyInt_As_unsigned_int(__pyx_v_rhs); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyInt_As_unsigned_int(__pyx_v_rhs); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;} intBitSetDelElem(__pyx_v_self->bitset, __pyx_t_6); goto __pyx_L3; } - /* "intbitset.pyx":337 + /* "intbitset.pyx":339 * raise OverflowError("rhs must be <= %s" % maxelem) * intBitSetDelElem(self.bitset, rhs) * elif isinstance(rhs, intbitset): # <<<<<<<<<<<<<< @@ -4514,7 +4549,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int __pyx_t_3 = (__pyx_t_1 != 0); if (__pyx_t_3) { - /* "intbitset.pyx":338 + /* "intbitset.pyx":340 * intBitSetDelElem(self.bitset, rhs) * elif isinstance(rhs, intbitset): * intBitSetISub(self.bitset, ( rhs).bitset) # <<<<<<<<<<<<<< @@ -4526,7 +4561,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int } /*else*/ { - /* "intbitset.pyx":340 + /* "intbitset.pyx":342 * intBitSetISub(self.bitset, ( rhs).bitset) * else: * if self.sanity_checks: # <<<<<<<<<<<<<< @@ -4536,7 +4571,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int __pyx_t_3 = (__pyx_v_self->sanity_checks != 0); if (__pyx_t_3) { - /* "intbitset.pyx":341 + /* "intbitset.pyx":343 * else: * if self.sanity_checks: * for elem in rhs: # <<<<<<<<<<<<<< @@ -4547,7 +4582,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int __pyx_t_4 = __pyx_v_rhs; __Pyx_INCREF(__pyx_t_4); __pyx_t_7 = 0; __pyx_t_8 = NULL; } else { - __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_rhs); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_rhs); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = Py_TYPE(__pyx_t_4)->tp_iternext; } @@ -4555,16 +4590,16 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int if (!__pyx_t_8 && PyList_CheckExact(__pyx_t_4)) { if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_4)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else if (!__pyx_t_8 && PyTuple_CheckExact(__pyx_t_4)) { if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_4)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else { __pyx_t_5 = __pyx_t_8(__pyx_t_4); @@ -4572,17 +4607,17 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } break; } __Pyx_GOTREF(__pyx_t_5); } - __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_elem = __pyx_t_9; - /* "intbitset.pyx":342 + /* "intbitset.pyx":344 * if self.sanity_checks: * for elem in rhs: * if elem < 0: # <<<<<<<<<<<<<< @@ -4592,21 +4627,21 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int __pyx_t_3 = ((__pyx_v_elem < 0) != 0); if (__pyx_t_3) { - /* "intbitset.pyx":343 + /* "intbitset.pyx":345 * for elem in rhs: * if elem < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":344 + /* "intbitset.pyx":346 * if elem < 0: * raise ValueError("Negative numbers, not allowed") * elif elem > maxelem: # <<<<<<<<<<<<<< @@ -4616,32 +4651,32 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int __pyx_t_3 = ((__pyx_v_elem > maxelem) != 0); if (__pyx_t_3) { - /* "intbitset.pyx":345 + /* "intbitset.pyx":347 * raise ValueError("Negative numbers, not allowed") * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) # <<<<<<<<<<<<<< * intBitSetDelElem(self.bitset, elem) * else: */ - __pyx_t_5 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); - __pyx_t_10 = __Pyx_PyString_Format(__pyx_kp_s_Elements_must_be_s, __pyx_t_5); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = __Pyx_PyString_Format(__pyx_kp_s_Elements_must_be_s, __pyx_t_5); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_10); __Pyx_GIVEREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_10, 0, 0, 0); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":346 + /* "intbitset.pyx":348 * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) * intBitSetDelElem(self.bitset, elem) # <<<<<<<<<<<<<< @@ -4655,7 +4690,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int } /*else*/ { - /* "intbitset.pyx":348 + /* "intbitset.pyx":350 * intBitSetDelElem(self.bitset, elem) * else: * for elem in rhs: # <<<<<<<<<<<<<< @@ -4666,7 +4701,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int __pyx_t_4 = __pyx_v_rhs; __Pyx_INCREF(__pyx_t_4); __pyx_t_7 = 0; __pyx_t_8 = NULL; } else { - __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_rhs); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_rhs); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = Py_TYPE(__pyx_t_4)->tp_iternext; } @@ -4674,16 +4709,16 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int if (!__pyx_t_8 && PyList_CheckExact(__pyx_t_4)) { if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_4)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_10 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_10); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_10); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_10 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else if (!__pyx_t_8 && PyTuple_CheckExact(__pyx_t_4)) { if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_4)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_10); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_10); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_10 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else { __pyx_t_10 = __pyx_t_8(__pyx_t_4); @@ -4691,17 +4726,17 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } break; } __Pyx_GOTREF(__pyx_t_10); } - __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_t_10); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_t_10); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_elem = __pyx_t_9; - /* "intbitset.pyx":349 + /* "intbitset.pyx":351 * else: * for elem in rhs: * intBitSetDelElem(self.bitset, elem) # <<<<<<<<<<<<<< @@ -4716,7 +4751,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int } __pyx_L3:; - /* "intbitset.pyx":350 + /* "intbitset.pyx":352 * for elem in rhs: * intBitSetDelElem(self.bitset, elem) * return self # <<<<<<<<<<<<<< @@ -4728,7 +4763,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; - /* "intbitset.pyx":327 + /* "intbitset.pyx":329 * return self * * def __isub__(self not None, rhs): # <<<<<<<<<<<<<< @@ -4749,7 +4784,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_18__isub__(struct __pyx_obj_9int return __pyx_r; } -/* "intbitset.pyx":352 +/* "intbitset.pyx":354 * return self * * def __deepcopy__(self not None, memo): # <<<<<<<<<<<<<< @@ -4767,7 +4802,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_21__deepcopy__(PyObject *__pyx_v __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__deepcopy__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_20__deepcopy__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), ((PyObject *)__pyx_v_memo)); @@ -4790,7 +4825,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_20__deepcopy__(struct __pyx_obj_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__deepcopy__", 0); - /* "intbitset.pyx":353 + /* "intbitset.pyx":355 * * def __deepcopy__(self not None, memo): * return intbitset(self) # <<<<<<<<<<<<<< @@ -4798,19 +4833,19 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_20__deepcopy__(struct __pyx_obj_ * def __del__(self not None, int elem): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_v_self)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self)); __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "intbitset.pyx":352 + /* "intbitset.pyx":354 * return self * * def __deepcopy__(self not None, memo): # <<<<<<<<<<<<<< @@ -4830,7 +4865,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_20__deepcopy__(struct __pyx_obj_ return __pyx_r; } -/* "intbitset.pyx":355 +/* "intbitset.pyx":357 * return intbitset(self) * * def __del__(self not None, int elem): # <<<<<<<<<<<<<< @@ -4849,7 +4884,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_23__del__(PyObject *__pyx_v_self __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); assert(__pyx_arg_elem); { - __pyx_v_elem = __Pyx_PyInt_As_int(__pyx_arg_elem); if (unlikely((__pyx_v_elem == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_elem = __Pyx_PyInt_As_int(__pyx_arg_elem); if (unlikely((__pyx_v_elem == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -4858,7 +4893,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_23__del__(PyObject *__pyx_v_self return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_22__del__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), ((int)__pyx_v_elem)); @@ -4882,7 +4917,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_22__del__(struct __pyx_obj_9intb int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__del__", 0); - /* "intbitset.pyx":356 + /* "intbitset.pyx":358 * * def __del__(self not None, int elem): * if self.sanity_checks: # <<<<<<<<<<<<<< @@ -4892,7 +4927,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_22__del__(struct __pyx_obj_9intb __pyx_t_1 = (__pyx_v_self->sanity_checks != 0); if (__pyx_t_1) { - /* "intbitset.pyx":357 + /* "intbitset.pyx":359 * def __del__(self not None, int elem): * if self.sanity_checks: * if elem < 0: # <<<<<<<<<<<<<< @@ -4902,21 +4937,21 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_22__del__(struct __pyx_obj_9intb __pyx_t_1 = ((__pyx_v_elem < 0) != 0); if (__pyx_t_1) { - /* "intbitset.pyx":358 + /* "intbitset.pyx":360 * if self.sanity_checks: * if elem < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif elem > maxelem: * raise OverflowError("Element must be <= %s" % maxelem) */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":359 + /* "intbitset.pyx":361 * if elem < 0: * raise ValueError("Negative numbers, not allowed") * elif elem > maxelem: # <<<<<<<<<<<<<< @@ -4926,35 +4961,35 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_22__del__(struct __pyx_obj_9intb __pyx_t_1 = ((__pyx_v_elem > maxelem) != 0); if (__pyx_t_1) { - /* "intbitset.pyx":360 + /* "intbitset.pyx":362 * raise ValueError("Negative numbers, not allowed") * elif elem > maxelem: * raise OverflowError("Element must be <= %s" % maxelem) # <<<<<<<<<<<<<< * intBitSetDelElem(self.bitset, elem) * */ - __pyx_t_2 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_Element_must_be_s, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_Element_must_be_s, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } goto __pyx_L3; } __pyx_L3:; - /* "intbitset.pyx":361 + /* "intbitset.pyx":363 * elif elem > maxelem: * raise OverflowError("Element must be <= %s" % maxelem) * intBitSetDelElem(self.bitset, elem) # <<<<<<<<<<<<<< @@ -4963,7 +4998,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_22__del__(struct __pyx_obj_9intb */ intBitSetDelElem(__pyx_v_self->bitset, __pyx_v_elem); - /* "intbitset.pyx":355 + /* "intbitset.pyx":357 * return intbitset(self) * * def __del__(self not None, int elem): # <<<<<<<<<<<<<< @@ -4985,7 +5020,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_22__del__(struct __pyx_obj_9intb return __pyx_r; } -/* "intbitset.pyx":363 +/* "intbitset.pyx":365 * intBitSetDelElem(self.bitset, elem) * * def __and__(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -5007,9 +5042,9 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_25__and__(PyObject *__pyx_v_self __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__and__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_9intbitset_9intbitset_24__and__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_rhs)); /* function exit code */ @@ -5032,23 +5067,23 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_24__and__(PyObject *__pyx_v_self int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__and__", 0); - /* "intbitset.pyx":367 + /* "intbitset.pyx":369 * (i.e. all elements that are in both intbitsets.) * """ * cdef intbitset ret = intbitset(no_allocate=1) # <<<<<<<<<<<<<< * (ret).bitset = intBitSetIntersection(( self).bitset, rhs.bitset) * return ret */ - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_no_allocate, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_no_allocate, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ret = ((struct __pyx_obj_9intbitset_intbitset *)__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":368 + /* "intbitset.pyx":370 * """ * cdef intbitset ret = intbitset(no_allocate=1) * (ret).bitset = intBitSetIntersection(( self).bitset, rhs.bitset) # <<<<<<<<<<<<<< @@ -5057,7 +5092,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_24__and__(PyObject *__pyx_v_self */ __pyx_v_ret->bitset = intBitSetIntersection(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self)->bitset, __pyx_v_rhs->bitset); - /* "intbitset.pyx":369 + /* "intbitset.pyx":371 * cdef intbitset ret = intbitset(no_allocate=1) * (ret).bitset = intBitSetIntersection(( self).bitset, rhs.bitset) * return ret # <<<<<<<<<<<<<< @@ -5069,7 +5104,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_24__and__(PyObject *__pyx_v_self __pyx_r = ((PyObject *)__pyx_v_ret); goto __pyx_L0; - /* "intbitset.pyx":363 + /* "intbitset.pyx":365 * intBitSetDelElem(self.bitset, elem) * * def __and__(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -5090,7 +5125,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_24__and__(PyObject *__pyx_v_self return __pyx_r; } -/* "intbitset.pyx":371 +/* "intbitset.pyx":373 * return ret * * def __or__(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -5112,9 +5147,9 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_27__or__(PyObject *__pyx_v_self, __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__or__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_9intbitset_9intbitset_26__or__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_rhs)); /* function exit code */ @@ -5137,23 +5172,23 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_26__or__(PyObject *__pyx_v_self, int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__or__", 0); - /* "intbitset.pyx":375 + /* "intbitset.pyx":377 * (i.e. all elements that are in either intbitsets.) * """ * cdef intbitset ret = intbitset(no_allocate=1) # <<<<<<<<<<<<<< * (ret).bitset = intBitSetUnion(( self).bitset, rhs.bitset) * return ret */ - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_no_allocate, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_no_allocate, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ret = ((struct __pyx_obj_9intbitset_intbitset *)__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":376 + /* "intbitset.pyx":378 * """ * cdef intbitset ret = intbitset(no_allocate=1) * (ret).bitset = intBitSetUnion(( self).bitset, rhs.bitset) # <<<<<<<<<<<<<< @@ -5162,7 +5197,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_26__or__(PyObject *__pyx_v_self, */ __pyx_v_ret->bitset = intBitSetUnion(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self)->bitset, __pyx_v_rhs->bitset); - /* "intbitset.pyx":377 + /* "intbitset.pyx":379 * cdef intbitset ret = intbitset(no_allocate=1) * (ret).bitset = intBitSetUnion(( self).bitset, rhs.bitset) * return ret # <<<<<<<<<<<<<< @@ -5174,7 +5209,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_26__or__(PyObject *__pyx_v_self, __pyx_r = ((PyObject *)__pyx_v_ret); goto __pyx_L0; - /* "intbitset.pyx":371 + /* "intbitset.pyx":373 * return ret * * def __or__(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -5195,7 +5230,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_26__or__(PyObject *__pyx_v_self, return __pyx_r; } -/* "intbitset.pyx":379 +/* "intbitset.pyx":381 * return ret * * def __xor__(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -5217,9 +5252,9 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_29__xor__(PyObject *__pyx_v_self __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__xor__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_9intbitset_9intbitset_28__xor__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_rhs)); /* function exit code */ @@ -5242,23 +5277,23 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_28__xor__(PyObject *__pyx_v_self int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__xor__", 0); - /* "intbitset.pyx":383 + /* "intbitset.pyx":385 * (i.e. all elements that are in exactly one of the sets.) * """ * cdef intbitset ret = intbitset(no_allocate=1) # <<<<<<<<<<<<<< * (ret).bitset = intBitSetXor(( self).bitset, rhs.bitset) * return ret */ - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_no_allocate, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_no_allocate, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ret = ((struct __pyx_obj_9intbitset_intbitset *)__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":384 + /* "intbitset.pyx":386 * """ * cdef intbitset ret = intbitset(no_allocate=1) * (ret).bitset = intBitSetXor(( self).bitset, rhs.bitset) # <<<<<<<<<<<<<< @@ -5267,7 +5302,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_28__xor__(PyObject *__pyx_v_self */ __pyx_v_ret->bitset = intBitSetXor(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self)->bitset, __pyx_v_rhs->bitset); - /* "intbitset.pyx":385 + /* "intbitset.pyx":387 * cdef intbitset ret = intbitset(no_allocate=1) * (ret).bitset = intBitSetXor(( self).bitset, rhs.bitset) * return ret # <<<<<<<<<<<<<< @@ -5279,7 +5314,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_28__xor__(PyObject *__pyx_v_self __pyx_r = ((PyObject *)__pyx_v_ret); goto __pyx_L0; - /* "intbitset.pyx":379 + /* "intbitset.pyx":381 * return ret * * def __xor__(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -5300,7 +5335,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_28__xor__(PyObject *__pyx_v_self return __pyx_r; } -/* "intbitset.pyx":387 +/* "intbitset.pyx":389 * return ret * * def __sub__(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -5322,9 +5357,9 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_31__sub__(PyObject *__pyx_v_self __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__sub__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_9intbitset_9intbitset_30__sub__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_rhs)); /* function exit code */ @@ -5347,23 +5382,23 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_30__sub__(PyObject *__pyx_v_self int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__sub__", 0); - /* "intbitset.pyx":391 + /* "intbitset.pyx":393 * (i.e. all elements that are in this intbitset but not the other.) * """ * cdef intbitset ret = intbitset(no_allocate=1) # <<<<<<<<<<<<<< * (ret).bitset = intBitSetSub(( self).bitset, rhs.bitset) * return ret */ - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_no_allocate, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_no_allocate, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ret = ((struct __pyx_obj_9intbitset_intbitset *)__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":392 + /* "intbitset.pyx":394 * """ * cdef intbitset ret = intbitset(no_allocate=1) * (ret).bitset = intBitSetSub(( self).bitset, rhs.bitset) # <<<<<<<<<<<<<< @@ -5372,7 +5407,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_30__sub__(PyObject *__pyx_v_self */ __pyx_v_ret->bitset = intBitSetSub(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self)->bitset, __pyx_v_rhs->bitset); - /* "intbitset.pyx":393 + /* "intbitset.pyx":395 * cdef intbitset ret = intbitset(no_allocate=1) * (ret).bitset = intBitSetSub(( self).bitset, rhs.bitset) * return ret # <<<<<<<<<<<<<< @@ -5384,7 +5419,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_30__sub__(PyObject *__pyx_v_self __pyx_r = ((PyObject *)__pyx_v_ret); goto __pyx_L0; - /* "intbitset.pyx":387 + /* "intbitset.pyx":389 * return ret * * def __sub__(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -5405,7 +5440,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_30__sub__(PyObject *__pyx_v_self return __pyx_r; } -/* "intbitset.pyx":395 +/* "intbitset.pyx":397 * return ret * * def __iand__(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -5427,9 +5462,9 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_33__iand__(PyObject *__pyx_v_sel __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__iand__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_9intbitset_9intbitset_32__iand__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), ((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_rhs)); /* function exit code */ @@ -5446,7 +5481,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_32__iand__(struct __pyx_obj_9int __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__iand__", 0); - /* "intbitset.pyx":397 + /* "intbitset.pyx":399 * def __iand__(self not None, intbitset rhs not None): * """Update a intbitset with the intersection of itself and another.""" * intBitSetIIntersection(self.bitset, rhs.bitset) # <<<<<<<<<<<<<< @@ -5455,7 +5490,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_32__iand__(struct __pyx_obj_9int */ intBitSetIIntersection(__pyx_v_self->bitset, __pyx_v_rhs->bitset); - /* "intbitset.pyx":398 + /* "intbitset.pyx":400 * """Update a intbitset with the intersection of itself and another.""" * intBitSetIIntersection(self.bitset, rhs.bitset) * return self # <<<<<<<<<<<<<< @@ -5467,7 +5502,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_32__iand__(struct __pyx_obj_9int __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; - /* "intbitset.pyx":395 + /* "intbitset.pyx":397 * return ret * * def __iand__(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -5482,7 +5517,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_32__iand__(struct __pyx_obj_9int return __pyx_r; } -/* "intbitset.pyx":400 +/* "intbitset.pyx":402 * return self * * def __ior__(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -5504,9 +5539,9 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_35__ior__(PyObject *__pyx_v_self __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__ior__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_9intbitset_9intbitset_34__ior__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), ((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_rhs)); /* function exit code */ @@ -5523,7 +5558,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_34__ior__(struct __pyx_obj_9intb __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__ior__", 0); - /* "intbitset.pyx":402 + /* "intbitset.pyx":404 * def __ior__(self not None, intbitset rhs not None): * """Update a intbitset with the union of itself and another.""" * intBitSetIUnion(self.bitset, rhs.bitset) # <<<<<<<<<<<<<< @@ -5532,7 +5567,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_34__ior__(struct __pyx_obj_9intb */ intBitSetIUnion(__pyx_v_self->bitset, __pyx_v_rhs->bitset); - /* "intbitset.pyx":403 + /* "intbitset.pyx":405 * """Update a intbitset with the union of itself and another.""" * intBitSetIUnion(self.bitset, rhs.bitset) * return self # <<<<<<<<<<<<<< @@ -5544,7 +5579,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_34__ior__(struct __pyx_obj_9intb __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; - /* "intbitset.pyx":400 + /* "intbitset.pyx":402 * return self * * def __ior__(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -5559,7 +5594,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_34__ior__(struct __pyx_obj_9intb return __pyx_r; } -/* "intbitset.pyx":405 +/* "intbitset.pyx":407 * return self * * def __ixor__(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -5581,9 +5616,9 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_37__ixor__(PyObject *__pyx_v_sel __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__ixor__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_9intbitset_9intbitset_36__ixor__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), ((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_rhs)); /* function exit code */ @@ -5600,7 +5635,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_36__ixor__(struct __pyx_obj_9int __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__ixor__", 0); - /* "intbitset.pyx":408 + /* "intbitset.pyx":410 * """Update an intbitset with the symmetric difference of itself and another. * """ * intBitSetIXor(self.bitset, rhs.bitset) # <<<<<<<<<<<<<< @@ -5609,7 +5644,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_36__ixor__(struct __pyx_obj_9int */ intBitSetIXor(__pyx_v_self->bitset, __pyx_v_rhs->bitset); - /* "intbitset.pyx":409 + /* "intbitset.pyx":411 * """ * intBitSetIXor(self.bitset, rhs.bitset) * return self # <<<<<<<<<<<<<< @@ -5621,7 +5656,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_36__ixor__(struct __pyx_obj_9int __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; - /* "intbitset.pyx":405 + /* "intbitset.pyx":407 * return self * * def __ixor__(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -5636,7 +5671,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_36__ixor__(struct __pyx_obj_9int return __pyx_r; } -/* "intbitset.pyx":411 +/* "intbitset.pyx":413 * return self * * def __repr__(self not None): # <<<<<<<<<<<<<< @@ -5654,7 +5689,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_39__repr__(PyObject *__pyx_v_sel __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_38__repr__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self)); @@ -5679,19 +5714,19 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_38__repr__(struct __pyx_obj_9int int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); - /* "intbitset.pyx":412 + /* "intbitset.pyx":414 * * def __repr__(self not None): * finite_list = self.extract_finite_list() # <<<<<<<<<<<<<< * if self.bitset.trailing_bits: * return "intbitset(%s, trailing_bits=True)" % repr(finite_list) */ - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->extract_finite_list(__pyx_v_self, 0, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->extract_finite_list(__pyx_v_self, 0, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_finite_list = __pyx_t_1; __pyx_t_1 = 0; - /* "intbitset.pyx":413 + /* "intbitset.pyx":415 * def __repr__(self not None): * finite_list = self.extract_finite_list() * if self.bitset.trailing_bits: # <<<<<<<<<<<<<< @@ -5701,7 +5736,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_38__repr__(struct __pyx_obj_9int __pyx_t_2 = (__pyx_v_self->bitset->trailing_bits != 0); if (__pyx_t_2) { - /* "intbitset.pyx":414 + /* "intbitset.pyx":416 * finite_list = self.extract_finite_list() * if self.bitset.trailing_bits: * return "intbitset(%s, trailing_bits=True)" % repr(finite_list) # <<<<<<<<<<<<<< @@ -5709,9 +5744,9 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_38__repr__(struct __pyx_obj_9int * return "intbitset(%s)" % repr(finite_list) */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = PyObject_Repr(__pyx_v_finite_list); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Repr(__pyx_v_finite_list); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_intbitset_s_trailing_bits_True, __pyx_t_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_intbitset_s_trailing_bits_True, __pyx_t_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; @@ -5720,7 +5755,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_38__repr__(struct __pyx_obj_9int } /*else*/ { - /* "intbitset.pyx":416 + /* "intbitset.pyx":418 * return "intbitset(%s, trailing_bits=True)" % repr(finite_list) * else: * return "intbitset(%s)" % repr(finite_list) # <<<<<<<<<<<<<< @@ -5728,9 +5763,9 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_38__repr__(struct __pyx_obj_9int * def __str__(self not None): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = PyObject_Repr(__pyx_v_finite_list); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Repr(__pyx_v_finite_list); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 418; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_intbitset_s, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_intbitset_s, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 418; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_1; @@ -5738,7 +5773,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_38__repr__(struct __pyx_obj_9int goto __pyx_L0; } - /* "intbitset.pyx":411 + /* "intbitset.pyx":413 * return self * * def __repr__(self not None): # <<<<<<<<<<<<<< @@ -5759,7 +5794,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_38__repr__(struct __pyx_obj_9int return __pyx_r; } -/* "intbitset.pyx":418 +/* "intbitset.pyx":420 * return "intbitset(%s)" % repr(finite_list) * * def __str__(self not None): # <<<<<<<<<<<<<< @@ -5777,7 +5812,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_41__str__(PyObject *__pyx_v_self __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__str__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 418; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 420; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_40__str__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self)); @@ -5809,7 +5844,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__str__", 0); - /* "intbitset.pyx":420 + /* "intbitset.pyx":422 * def __str__(self not None): * cdef int tot * tot = intBitSetGetTot(self.bitset) # <<<<<<<<<<<<<< @@ -5818,7 +5853,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb */ __pyx_v_tot = intBitSetGetTot(__pyx_v_self->bitset); - /* "intbitset.pyx":421 + /* "intbitset.pyx":423 * cdef int tot * tot = intBitSetGetTot(self.bitset) * if tot < 0: # <<<<<<<<<<<<<< @@ -5828,7 +5863,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb __pyx_t_1 = ((__pyx_v_tot < 0) != 0); if (__pyx_t_1) { - /* "intbitset.pyx":422 + /* "intbitset.pyx":424 * tot = intBitSetGetTot(self.bitset) * if tot < 0: * return "intbitset([...], trailing_bits=True)" # <<<<<<<<<<<<<< @@ -5841,7 +5876,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb goto __pyx_L0; } - /* "intbitset.pyx":423 + /* "intbitset.pyx":425 * if tot < 0: * return "intbitset([...], trailing_bits=True)" * elif tot > 10: # <<<<<<<<<<<<<< @@ -5851,31 +5886,31 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb __pyx_t_1 = ((__pyx_v_tot > 10) != 0); if (__pyx_t_1) { - /* "intbitset.pyx":424 + /* "intbitset.pyx":426 * return "intbitset([...], trailing_bits=True)" * elif tot > 10: * begin_list = self[0:5] # <<<<<<<<<<<<<< * end_list = self[tot - 5:tot] * ret = "intbitset([" */ - __pyx_t_2 = __Pyx_PyObject_GetSlice(((PyObject *)__pyx_v_self), 0, 5, NULL, NULL, &__pyx_slice__16, 1, 1, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_GetSlice(((PyObject *)__pyx_v_self), 0, 5, NULL, NULL, &__pyx_slice__16, 1, 1, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 426; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_v_begin_list = __pyx_t_2; __pyx_t_2 = 0; - /* "intbitset.pyx":425 + /* "intbitset.pyx":427 * elif tot > 10: * begin_list = self[0:5] * end_list = self[tot - 5:tot] # <<<<<<<<<<<<<< * ret = "intbitset([" * for n in begin_list: */ - __pyx_t_2 = __Pyx_PyObject_GetSlice(((PyObject *)__pyx_v_self), (__pyx_v_tot - 5), __pyx_v_tot, NULL, NULL, NULL, 1, 1, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_GetSlice(((PyObject *)__pyx_v_self), (__pyx_v_tot - 5), __pyx_v_tot, NULL, NULL, NULL, 1, 1, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_v_end_list = __pyx_t_2; __pyx_t_2 = 0; - /* "intbitset.pyx":426 + /* "intbitset.pyx":428 * begin_list = self[0:5] * end_list = self[tot - 5:tot] * ret = "intbitset([" # <<<<<<<<<<<<<< @@ -5885,7 +5920,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb __Pyx_INCREF(__pyx_kp_s_intbitset); __pyx_v_ret = __pyx_kp_s_intbitset; - /* "intbitset.pyx":427 + /* "intbitset.pyx":429 * end_list = self[tot - 5:tot] * ret = "intbitset([" * for n in begin_list: # <<<<<<<<<<<<<< @@ -5896,7 +5931,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb __pyx_t_2 = __pyx_v_begin_list; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0; __pyx_t_4 = NULL; } else { - __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_begin_list); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_begin_list); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext; } @@ -5904,16 +5939,16 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb if (!__pyx_t_4 && PyList_CheckExact(__pyx_t_2)) { if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else if (!__pyx_t_4 && PyTuple_CheckExact(__pyx_t_2)) { if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else { __pyx_t_5 = __pyx_t_4(__pyx_t_2); @@ -5921,7 +5956,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } break; } @@ -5930,16 +5965,16 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_5); __pyx_t_5 = 0; - /* "intbitset.pyx":428 + /* "intbitset.pyx":430 * ret = "intbitset([" * for n in begin_list: * ret += '%i, ' % n # <<<<<<<<<<<<<< * ret += "..., " * for n in end_list: */ - __pyx_t_5 = __Pyx_PyString_Format(__pyx_kp_s_i, __pyx_v_n); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyString_Format(__pyx_kp_s_i, __pyx_v_n); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_ret, __pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_ret, __pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF_SET(__pyx_v_ret, __pyx_t_6); @@ -5947,19 +5982,19 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":429 + /* "intbitset.pyx":431 * for n in begin_list: * ret += '%i, ' % n * ret += "..., " # <<<<<<<<<<<<<< * for n in end_list: * ret += '%i, ' % n */ - __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_ret, __pyx_kp_s__17); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_ret, __pyx_kp_s__17); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF_SET(__pyx_v_ret, __pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":430 + /* "intbitset.pyx":432 * ret += '%i, ' % n * ret += "..., " * for n in end_list: # <<<<<<<<<<<<<< @@ -5970,7 +6005,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb __pyx_t_2 = __pyx_v_end_list; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0; __pyx_t_4 = NULL; } else { - __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_end_list); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_end_list); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext; } @@ -5978,16 +6013,16 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb if (!__pyx_t_4 && PyList_CheckExact(__pyx_t_2)) { if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_6); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_6); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_6 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else if (!__pyx_t_4 && PyTuple_CheckExact(__pyx_t_2)) { if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_6); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_6); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_6 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else { __pyx_t_6 = __pyx_t_4(__pyx_t_2); @@ -5995,7 +6030,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } break; } @@ -6004,16 +6039,16 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_6); __pyx_t_6 = 0; - /* "intbitset.pyx":431 + /* "intbitset.pyx":433 * ret += "..., " * for n in end_list: * ret += '%i, ' % n # <<<<<<<<<<<<<< * ret = ret[:-2] * ret += '])' */ - __pyx_t_6 = __Pyx_PyString_Format(__pyx_kp_s_i, __pyx_v_n); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyString_Format(__pyx_kp_s_i, __pyx_v_n); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_ret, __pyx_t_6); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_ret, __pyx_t_6); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF_SET(__pyx_v_ret, __pyx_t_5); @@ -6021,31 +6056,31 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":432 + /* "intbitset.pyx":434 * for n in end_list: * ret += '%i, ' % n * ret = ret[:-2] # <<<<<<<<<<<<<< * ret += '])' * return ret */ - __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_ret, 0, -2, NULL, NULL, &__pyx_slice__18, 0, 1, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_ret, 0, -2, NULL, NULL, &__pyx_slice__18, 0, 1, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF_SET(__pyx_v_ret, __pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":433 + /* "intbitset.pyx":435 * ret += '%i, ' % n * ret = ret[:-2] * ret += '])' # <<<<<<<<<<<<<< * return ret * else: */ - __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_ret, __pyx_kp_s__19); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_ret, __pyx_kp_s__19); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF_SET(__pyx_v_ret, __pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":434 + /* "intbitset.pyx":436 * ret = ret[:-2] * ret += '])' * return ret # <<<<<<<<<<<<<< @@ -6059,7 +6094,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb } /*else*/ { - /* "intbitset.pyx":436 + /* "intbitset.pyx":438 * return ret * else: * return self.__repr__() # <<<<<<<<<<<<<< @@ -6067,9 +6102,9 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb * def __getitem__(self not None, object key): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_repr); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_repr); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_5; @@ -6077,7 +6112,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb goto __pyx_L0; } - /* "intbitset.pyx":418 + /* "intbitset.pyx":420 * return "intbitset(%s)" % repr(finite_list) * * def __str__(self not None): # <<<<<<<<<<<<<< @@ -6102,7 +6137,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_40__str__(struct __pyx_obj_9intb return __pyx_r; } -/* "intbitset.pyx":438 +/* "intbitset.pyx":440 * return self.__repr__() * * def __getitem__(self not None, object key): # <<<<<<<<<<<<<< @@ -6120,7 +6155,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_43__getitem__(PyObject *__pyx_v_ __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_42__getitem__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), ((PyObject *)__pyx_v_key)); @@ -6161,7 +6196,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getitem__", 0); - /* "intbitset.pyx":440 + /* "intbitset.pyx":442 * def __getitem__(self not None, object key): * cdef Py_ssize_t i * cdef int elem = -1 # <<<<<<<<<<<<<< @@ -6170,18 +6205,18 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 */ __pyx_v_elem = -1; - /* "intbitset.pyx":444 + /* "intbitset.pyx":446 * cdef int end * cdef int step * if hasattr(key, 'indices'): # <<<<<<<<<<<<<< * ## This is a slice object! * if self.bitset.trailing_bits and (key.start < 0 or key.stop < 0): */ - __pyx_t_1 = PyObject_HasAttr(__pyx_v_key, __pyx_n_s_indices); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 444; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_HasAttr(__pyx_v_key, __pyx_n_s_indices); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "intbitset.pyx":446 + /* "intbitset.pyx":448 * if hasattr(key, 'indices'): * ## This is a slice object! * if self.bitset.trailing_bits and (key.start < 0 or key.stop < 0): # <<<<<<<<<<<<<< @@ -6189,18 +6224,18 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 * retset = intbitset() */ if ((__pyx_v_self->bitset->trailing_bits != 0)) { - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_start); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_start); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (!__pyx_t_2) { - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_stop); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_stop); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_5 = __pyx_t_1; } else { @@ -6212,49 +6247,49 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 } if (__pyx_t_2) { - /* "intbitset.pyx":447 + /* "intbitset.pyx":449 * ## This is a slice object! * if self.bitset.trailing_bits and (key.start < 0 or key.stop < 0): * raise IndexError("negative indexes are not allowed on infinite intbitset") # <<<<<<<<<<<<<< * retset = intbitset() * start, end, step = key.indices(intBitSetGetTot(self.bitset)) */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":448 + /* "intbitset.pyx":450 * if self.bitset.trailing_bits and (key.start < 0 or key.stop < 0): * raise IndexError("negative indexes are not allowed on infinite intbitset") * retset = intbitset() # <<<<<<<<<<<<<< * start, end, step = key.indices(intBitSetGetTot(self.bitset)) * if step < 0: */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_v_retset = ((struct __pyx_obj_9intbitset_intbitset *)__pyx_t_3); __pyx_t_3 = 0; - /* "intbitset.pyx":449 + /* "intbitset.pyx":451 * raise IndexError("negative indexes are not allowed on infinite intbitset") * retset = intbitset() * start, end, step = key.indices(intBitSetGetTot(self.bitset)) # <<<<<<<<<<<<<< * if step < 0: * raise ValueError("negative steps are not yet supported") */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_indices); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_indices); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __Pyx_PyInt_From_int(intBitSetGetTot(__pyx_v_self->bitset)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyInt_From_int(intBitSetGetTot(__pyx_v_self->bitset)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; @@ -6268,7 +6303,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 if (unlikely(size != 3)) { if (size > 3) __Pyx_RaiseTooManyValuesError(3); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } #if CYTHON_COMPILING_IN_CPYTHON if (likely(PyTuple_CheckExact(sequence))) { @@ -6284,17 +6319,17 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); #else - __pyx_t_6 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { Py_ssize_t index = -1; - __pyx_t_8 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_8 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_9 = Py_TYPE(__pyx_t_8)->tp_iternext; @@ -6304,7 +6339,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 __Pyx_GOTREF(__pyx_t_3); index = 2; __pyx_t_7 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_7)) goto __pyx_L5_unpacking_failed; __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_9 = NULL; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; goto __pyx_L6_unpacking_done; @@ -6312,20 +6347,20 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_9 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_L6_unpacking_done:; } - __pyx_t_10 = __Pyx_PyInt_As_int(__pyx_t_6); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = __Pyx_PyInt_As_int(__pyx_t_6); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_t_7); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_t_7); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_start = __pyx_t_10; __pyx_v_end = __pyx_t_11; __pyx_v_step = __pyx_t_12; - /* "intbitset.pyx":450 + /* "intbitset.pyx":452 * retset = intbitset() * start, end, step = key.indices(intBitSetGetTot(self.bitset)) * if step < 0: # <<<<<<<<<<<<<< @@ -6335,21 +6370,21 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 __pyx_t_2 = ((__pyx_v_step < 0) != 0); if (__pyx_t_2) { - /* "intbitset.pyx":451 + /* "intbitset.pyx":453 * start, end, step = key.indices(intBitSetGetTot(self.bitset)) * if step < 0: * raise ValueError("negative steps are not yet supported") # <<<<<<<<<<<<<< * for i in range(start): * elem = intBitSetGetNext(self.bitset, elem) */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":452 + /* "intbitset.pyx":454 * if step < 0: * raise ValueError("negative steps are not yet supported") * for i in range(start): # <<<<<<<<<<<<<< @@ -6360,7 +6395,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) { __pyx_v_i = __pyx_t_13; - /* "intbitset.pyx":453 + /* "intbitset.pyx":455 * raise ValueError("negative steps are not yet supported") * for i in range(start): * elem = intBitSetGetNext(self.bitset, elem) # <<<<<<<<<<<<<< @@ -6369,7 +6404,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 */ __pyx_v_elem = intBitSetGetNext(__pyx_v_self->bitset, __pyx_v_elem); - /* "intbitset.pyx":454 + /* "intbitset.pyx":456 * for i in range(start): * elem = intBitSetGetNext(self.bitset, elem) * if elem < 0: # <<<<<<<<<<<<<< @@ -6379,7 +6414,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 __pyx_t_2 = ((__pyx_v_elem < 0) != 0); if (__pyx_t_2) { - /* "intbitset.pyx":455 + /* "intbitset.pyx":457 * elem = intBitSetGetNext(self.bitset, elem) * if elem < 0: * return retset # <<<<<<<<<<<<<< @@ -6393,7 +6428,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 } } - /* "intbitset.pyx":456 + /* "intbitset.pyx":458 * if elem < 0: * return retset * for i in range(end - start): # <<<<<<<<<<<<<< @@ -6404,7 +6439,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) { __pyx_v_i = __pyx_t_13; - /* "intbitset.pyx":457 + /* "intbitset.pyx":459 * return retset * for i in range(end - start): * elem = intBitSetGetNext(self.bitset, elem) # <<<<<<<<<<<<<< @@ -6413,7 +6448,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 */ __pyx_v_elem = intBitSetGetNext(__pyx_v_self->bitset, __pyx_v_elem); - /* "intbitset.pyx":458 + /* "intbitset.pyx":460 * for i in range(end - start): * elem = intBitSetGetNext(self.bitset, elem) * if elem < 0: # <<<<<<<<<<<<<< @@ -6423,7 +6458,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 __pyx_t_2 = ((__pyx_v_elem < 0) != 0); if (__pyx_t_2) { - /* "intbitset.pyx":459 + /* "intbitset.pyx":461 * elem = intBitSetGetNext(self.bitset, elem) * if elem < 0: * return retset # <<<<<<<<<<<<<< @@ -6436,7 +6471,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 goto __pyx_L0; } - /* "intbitset.pyx":460 + /* "intbitset.pyx":462 * if elem < 0: * return retset * if i % step == 0: # <<<<<<<<<<<<<< @@ -6451,19 +6486,19 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 #ifdef WITH_THREAD PyGILState_Release(__pyx_gilstate_save); #endif - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_t_2 = ((__Pyx_mod_Py_ssize_t(__pyx_v_i, __pyx_v_step) == 0) != 0); if (__pyx_t_2) { - /* "intbitset.pyx":461 + /* "intbitset.pyx":463 * return retset * if i % step == 0: * retset.add(elem) # <<<<<<<<<<<<<< * return retset * else: */ - __pyx_t_4 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_retset->__pyx_vtab)->add(__pyx_v_retset, __pyx_v_elem, 0); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_retset->__pyx_vtab)->add(__pyx_v_retset, __pyx_v_elem, 0); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L14; @@ -6471,7 +6506,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 __pyx_L14:; } - /* "intbitset.pyx":462 + /* "intbitset.pyx":464 * if i % step == 0: * retset.add(elem) * return retset # <<<<<<<<<<<<<< @@ -6485,17 +6520,17 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 } /*else*/ { - /* "intbitset.pyx":464 + /* "intbitset.pyx":466 * return retset * else: * end = key # <<<<<<<<<<<<<< * if end < 0: * if self.bitset.trailing_bits: */ - __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_v_key); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 464; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_v_key); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_end = __pyx_t_12; - /* "intbitset.pyx":465 + /* "intbitset.pyx":467 * else: * end = key * if end < 0: # <<<<<<<<<<<<<< @@ -6505,7 +6540,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 __pyx_t_2 = ((__pyx_v_end < 0) != 0); if (__pyx_t_2) { - /* "intbitset.pyx":466 + /* "intbitset.pyx":468 * end = key * if end < 0: * if self.bitset.trailing_bits: # <<<<<<<<<<<<<< @@ -6515,21 +6550,21 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 __pyx_t_2 = (__pyx_v_self->bitset->trailing_bits != 0); if (__pyx_t_2) { - /* "intbitset.pyx":467 + /* "intbitset.pyx":469 * if end < 0: * if self.bitset.trailing_bits: * raise IndexError("negative indexes are not allowed on infinite intbitset") # <<<<<<<<<<<<<< * end += intBitSetGetTot(self.bitset) * if end < 0: */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":468 + /* "intbitset.pyx":470 * if self.bitset.trailing_bits: * raise IndexError("negative indexes are not allowed on infinite intbitset") * end += intBitSetGetTot(self.bitset) # <<<<<<<<<<<<<< @@ -6538,7 +6573,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 */ __pyx_v_end = (__pyx_v_end + intBitSetGetTot(__pyx_v_self->bitset)); - /* "intbitset.pyx":469 + /* "intbitset.pyx":471 * raise IndexError("negative indexes are not allowed on infinite intbitset") * end += intBitSetGetTot(self.bitset) * if end < 0: # <<<<<<<<<<<<<< @@ -6548,24 +6583,24 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 __pyx_t_2 = ((__pyx_v_end < 0) != 0); if (__pyx_t_2) { - /* "intbitset.pyx":470 + /* "intbitset.pyx":472 * end += intBitSetGetTot(self.bitset) * if end < 0: * raise IndexError("intbitset index out of range") # <<<<<<<<<<<<<< * if end >= intBitSetGetTot(self.bitset): * raise IndexError("intbitset index out of range") */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } goto __pyx_L15; } __pyx_L15:; - /* "intbitset.pyx":471 + /* "intbitset.pyx":473 * if end < 0: * raise IndexError("intbitset index out of range") * if end >= intBitSetGetTot(self.bitset): # <<<<<<<<<<<<<< @@ -6575,21 +6610,21 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 __pyx_t_2 = ((__pyx_v_end >= intBitSetGetTot(__pyx_v_self->bitset)) != 0); if (__pyx_t_2) { - /* "intbitset.pyx":472 + /* "intbitset.pyx":474 * raise IndexError("intbitset index out of range") * if end >= intBitSetGetTot(self.bitset): * raise IndexError("intbitset index out of range") # <<<<<<<<<<<<<< * for i in range(end + 1): * elem = intBitSetGetNext(self.bitset, elem) */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":473 + /* "intbitset.pyx":475 * if end >= intBitSetGetTot(self.bitset): * raise IndexError("intbitset index out of range") * for i in range(end + 1): # <<<<<<<<<<<<<< @@ -6600,7 +6635,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_14; __pyx_t_13+=1) { __pyx_v_i = __pyx_t_13; - /* "intbitset.pyx":474 + /* "intbitset.pyx":476 * raise IndexError("intbitset index out of range") * for i in range(end + 1): * elem = intBitSetGetNext(self.bitset, elem) # <<<<<<<<<<<<<< @@ -6610,7 +6645,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 __pyx_v_elem = intBitSetGetNext(__pyx_v_self->bitset, __pyx_v_elem); } - /* "intbitset.pyx":475 + /* "intbitset.pyx":477 * for i in range(end + 1): * elem = intBitSetGetNext(self.bitset, elem) * return elem # <<<<<<<<<<<<<< @@ -6618,14 +6653,14 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 * #def __getslice__(self not None, Py_ssize_t key1, Py_ssize_t key2): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_elem); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_elem); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 477; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } - /* "intbitset.pyx":438 + /* "intbitset.pyx":440 * return self.__repr__() * * def __getitem__(self not None, object key): # <<<<<<<<<<<<<< @@ -6649,7 +6684,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_42__getitem__(struct __pyx_obj_9 return __pyx_r; } -/* "intbitset.pyx":528 +/* "intbitset.pyx":530 * * # pickle interface * def __reduce__(self not None): # <<<<<<<<<<<<<< @@ -6667,7 +6702,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_45__reduce__(PyObject *__pyx_v_s __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_44__reduce__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self)); @@ -6691,7 +6726,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_44__reduce__(struct __pyx_obj_9i int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce__", 0); - /* "intbitset.pyx":529 + /* "intbitset.pyx":531 * # pickle interface * def __reduce__(self not None): * return _, (self.fastdump(),) # <<<<<<<<<<<<<< @@ -6699,16 +6734,16 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_44__reduce__(struct __pyx_obj_9i * __safe_for_unpickling__ = True */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s__25); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s__25); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->fastdump(__pyx_v_self, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->fastdump(__pyx_v_self, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); @@ -6720,7 +6755,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_44__reduce__(struct __pyx_obj_9i __pyx_t_2 = 0; goto __pyx_L0; - /* "intbitset.pyx":528 + /* "intbitset.pyx":530 * * # pickle interface * def __reduce__(self not None): # <<<<<<<<<<<<<< @@ -6741,7 +6776,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_44__reduce__(struct __pyx_obj_9i return __pyx_r; } -/* "intbitset.pyx":534 +/* "intbitset.pyx":536 * * # Iterator interface * def __iter__(self not None): # <<<<<<<<<<<<<< @@ -6759,7 +6794,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_47__iter__(PyObject *__pyx_v_sel __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 534; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_46__iter__(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self)); @@ -6783,7 +6818,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_46__iter__(struct __pyx_obj_9int int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__iter__", 0); - /* "intbitset.pyx":535 + /* "intbitset.pyx":537 * # Iterator interface * def __iter__(self not None): * if self.bitset.trailing_bits: # <<<<<<<<<<<<<< @@ -6793,21 +6828,21 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_46__iter__(struct __pyx_obj_9int __pyx_t_1 = (__pyx_v_self->bitset->trailing_bits != 0); if (__pyx_t_1) { - /* "intbitset.pyx":536 + /* "intbitset.pyx":538 * def __iter__(self not None): * if self.bitset.trailing_bits: * raise OverflowError("It's impossible to iterate over an infinite set.") # <<<<<<<<<<<<<< * return intbitset_iterator(self) * */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":537 + /* "intbitset.pyx":539 * if self.bitset.trailing_bits: * raise OverflowError("It's impossible to iterate over an infinite set.") * return intbitset_iterator(self) # <<<<<<<<<<<<<< @@ -6815,19 +6850,19 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_46__iter__(struct __pyx_obj_9int * # Customized interface */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 537; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)__pyx_v_self)); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self)); __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset_iterator)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 537; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset_iterator)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "intbitset.pyx":534 + /* "intbitset.pyx":536 * * # Iterator interface * def __iter__(self not None): # <<<<<<<<<<<<<< @@ -6847,7 +6882,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_46__iter__(struct __pyx_obj_9int return __pyx_r; } -/* "intbitset.pyx":540 +/* "intbitset.pyx":542 * * # Customized interface * cpdef add(intbitset self, int elem): # <<<<<<<<<<<<<< @@ -6871,18 +6906,18 @@ static PyObject *__pyx_f_9intbitset_9intbitset_add(struct __pyx_obj_9intbitset_i if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_add); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_add); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_49add)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_elem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_elem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; @@ -6893,7 +6928,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_add(struct __pyx_obj_9intbitset_i __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":543 + /* "intbitset.pyx":545 * """Add an element to a set. * This has no effect if the element is already present.""" * if self.sanity_checks: # <<<<<<<<<<<<<< @@ -6903,7 +6938,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_add(struct __pyx_obj_9intbitset_i __pyx_t_4 = (__pyx_v_self->sanity_checks != 0); if (__pyx_t_4) { - /* "intbitset.pyx":544 + /* "intbitset.pyx":546 * This has no effect if the element is already present.""" * if self.sanity_checks: * if elem < 0: # <<<<<<<<<<<<<< @@ -6913,21 +6948,21 @@ static PyObject *__pyx_f_9intbitset_9intbitset_add(struct __pyx_obj_9intbitset_i __pyx_t_4 = ((__pyx_v_elem < 0) != 0); if (__pyx_t_4) { - /* "intbitset.pyx":545 + /* "intbitset.pyx":547 * if self.sanity_checks: * if elem < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif elem > maxelem: * raise OverflowError("Element must be <= %s" % maxelem) */ - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":546 + /* "intbitset.pyx":548 * if elem < 0: * raise ValueError("Negative numbers, not allowed") * elif elem > maxelem: # <<<<<<<<<<<<<< @@ -6937,35 +6972,35 @@ static PyObject *__pyx_f_9intbitset_9intbitset_add(struct __pyx_obj_9intbitset_i __pyx_t_4 = ((__pyx_v_elem > maxelem) != 0); if (__pyx_t_4) { - /* "intbitset.pyx":547 + /* "intbitset.pyx":549 * raise ValueError("Negative numbers, not allowed") * elif elem > maxelem: * raise OverflowError("Element must be <= %s" % maxelem) # <<<<<<<<<<<<<< * intBitSetAddElem(self.bitset, elem) * */ - __pyx_t_1 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_Element_must_be_s, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_Element_must_be_s, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } goto __pyx_L3; } __pyx_L3:; - /* "intbitset.pyx":548 + /* "intbitset.pyx":550 * elif elem > maxelem: * raise OverflowError("Element must be <= %s" % maxelem) * intBitSetAddElem(self.bitset, elem) # <<<<<<<<<<<<<< @@ -6974,7 +7009,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_add(struct __pyx_obj_9intbitset_i */ intBitSetAddElem(__pyx_v_self->bitset, __pyx_v_elem); - /* "intbitset.pyx":540 + /* "intbitset.pyx":542 * * # Customized interface * cpdef add(intbitset self, int elem): # <<<<<<<<<<<<<< @@ -7009,7 +7044,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_49add(PyObject *__pyx_v_self, Py __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add (wrapper)", 0); assert(__pyx_arg_elem); { - __pyx_v_elem = __Pyx_PyInt_As_int(__pyx_arg_elem); if (unlikely((__pyx_v_elem == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_elem = __Pyx_PyInt_As_int(__pyx_arg_elem); if (unlikely((__pyx_v_elem == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -7033,7 +7068,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_48add(struct __pyx_obj_9intbitse int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->add(__pyx_v_self, __pyx_v_elem, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->add(__pyx_v_self, __pyx_v_elem, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -7050,7 +7085,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_48add(struct __pyx_obj_9intbitse return __pyx_r; } -/* "intbitset.pyx":550 +/* "intbitset.pyx":552 * intBitSetAddElem(self.bitset, elem) * * cpdef clear(intbitset self): # <<<<<<<<<<<<<< @@ -7072,11 +7107,11 @@ static PyObject *__pyx_f_9intbitset_9intbitset_clear(struct __pyx_obj_9intbitset if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clear); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clear); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_51clear)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -7086,7 +7121,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_clear(struct __pyx_obj_9intbitset __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":551 + /* "intbitset.pyx":553 * * cpdef clear(intbitset self): * intBitSetReset(self.bitset) # <<<<<<<<<<<<<< @@ -7095,7 +7130,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_clear(struct __pyx_obj_9intbitset */ intBitSetReset(__pyx_v_self->bitset); - /* "intbitset.pyx":550 + /* "intbitset.pyx":552 * intBitSetAddElem(self.bitset, elem) * * cpdef clear(intbitset self): # <<<<<<<<<<<<<< @@ -7139,7 +7174,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_50clear(struct __pyx_obj_9intbit int __pyx_clineno = 0; __Pyx_RefNannySetupContext("clear", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->clear(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->clear(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -7156,7 +7191,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_50clear(struct __pyx_obj_9intbit return __pyx_r; } -/* "intbitset.pyx":554 +/* "intbitset.pyx":556 * * * cpdef discard(intbitset self, int elem): # <<<<<<<<<<<<<< @@ -7180,18 +7215,18 @@ static PyObject *__pyx_f_9intbitset_9intbitset_discard(struct __pyx_obj_9intbits if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_discard); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_discard); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_53discard)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_elem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_elem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; @@ -7202,7 +7237,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_discard(struct __pyx_obj_9intbits __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":557 + /* "intbitset.pyx":559 * """Remove an element from a intbitset if it is a member. * If the element is not a member, do nothing.""" * if self.sanity_checks: # <<<<<<<<<<<<<< @@ -7212,7 +7247,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_discard(struct __pyx_obj_9intbits __pyx_t_4 = (__pyx_v_self->sanity_checks != 0); if (__pyx_t_4) { - /* "intbitset.pyx":558 + /* "intbitset.pyx":560 * If the element is not a member, do nothing.""" * if self.sanity_checks: * if elem < 0: # <<<<<<<<<<<<<< @@ -7222,21 +7257,21 @@ static PyObject *__pyx_f_9intbitset_9intbitset_discard(struct __pyx_obj_9intbits __pyx_t_4 = ((__pyx_v_elem < 0) != 0); if (__pyx_t_4) { - /* "intbitset.pyx":559 + /* "intbitset.pyx":561 * if self.sanity_checks: * if elem < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif elem > maxelem: * raise OverflowError("Element must be <= %s" % maxelem) */ - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":560 + /* "intbitset.pyx":562 * if elem < 0: * raise ValueError("Negative numbers, not allowed") * elif elem > maxelem: # <<<<<<<<<<<<<< @@ -7246,35 +7281,35 @@ static PyObject *__pyx_f_9intbitset_9intbitset_discard(struct __pyx_obj_9intbits __pyx_t_4 = ((__pyx_v_elem > maxelem) != 0); if (__pyx_t_4) { - /* "intbitset.pyx":561 + /* "intbitset.pyx":563 * raise ValueError("Negative numbers, not allowed") * elif elem > maxelem: * raise OverflowError("Element must be <= %s" % maxelem) # <<<<<<<<<<<<<< * intBitSetDelElem(self.bitset, elem) * */ - __pyx_t_1 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_Element_must_be_s, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_Element_must_be_s, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } goto __pyx_L3; } __pyx_L3:; - /* "intbitset.pyx":562 + /* "intbitset.pyx":564 * elif elem > maxelem: * raise OverflowError("Element must be <= %s" % maxelem) * intBitSetDelElem(self.bitset, elem) # <<<<<<<<<<<<<< @@ -7283,7 +7318,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_discard(struct __pyx_obj_9intbits */ intBitSetDelElem(__pyx_v_self->bitset, __pyx_v_elem); - /* "intbitset.pyx":554 + /* "intbitset.pyx":556 * * * cpdef discard(intbitset self, int elem): # <<<<<<<<<<<<<< @@ -7318,7 +7353,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_53discard(PyObject *__pyx_v_self __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("discard (wrapper)", 0); assert(__pyx_arg_elem); { - __pyx_v_elem = __Pyx_PyInt_As_int(__pyx_arg_elem); if (unlikely((__pyx_v_elem == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_elem = __Pyx_PyInt_As_int(__pyx_arg_elem); if (unlikely((__pyx_v_elem == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -7342,7 +7377,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_52discard(struct __pyx_obj_9intb int __pyx_clineno = 0; __Pyx_RefNannySetupContext("discard", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->discard(__pyx_v_self, __pyx_v_elem, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->discard(__pyx_v_self, __pyx_v_elem, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -7359,7 +7394,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_52discard(struct __pyx_obj_9intb return __pyx_r; } -/* "intbitset.pyx":567 +/* "intbitset.pyx":569 * symmetric_difference_update = __ixor__ * * cpdef issubset(intbitset self, rhs): # <<<<<<<<<<<<<< @@ -7382,16 +7417,16 @@ static PyObject *__pyx_f_9intbitset_9intbitset_issubset(struct __pyx_obj_9intbit if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_issubset); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_issubset); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_55issubset)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_rhs); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_rhs); __Pyx_GIVEREF(__pyx_v_rhs); - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; @@ -7402,7 +7437,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_issubset(struct __pyx_obj_9intbit __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":569 + /* "intbitset.pyx":571 * cpdef issubset(intbitset self, rhs): * """Report whether another set contains this set.""" * return self.__le__(rhs) # <<<<<<<<<<<<<< @@ -7410,14 +7445,14 @@ static PyObject *__pyx_f_9intbitset_9intbitset_issubset(struct __pyx_obj_9intbit * cpdef issuperset(intbitset self, rhs): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_le); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_le); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_rhs); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_rhs); __Pyx_GIVEREF(__pyx_v_rhs); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -7425,7 +7460,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_issubset(struct __pyx_obj_9intbit __pyx_t_2 = 0; goto __pyx_L0; - /* "intbitset.pyx":567 + /* "intbitset.pyx":569 * symmetric_difference_update = __ixor__ * * cpdef issubset(intbitset self, rhs): # <<<<<<<<<<<<<< @@ -7469,7 +7504,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_54issubset(struct __pyx_obj_9int int __pyx_clineno = 0; __Pyx_RefNannySetupContext("issubset", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->issubset(__pyx_v_self, __pyx_v_rhs, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->issubset(__pyx_v_self, __pyx_v_rhs, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -7486,7 +7521,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_54issubset(struct __pyx_obj_9int return __pyx_r; } -/* "intbitset.pyx":571 +/* "intbitset.pyx":573 * return self.__le__(rhs) * * cpdef issuperset(intbitset self, rhs): # <<<<<<<<<<<<<< @@ -7509,16 +7544,16 @@ static PyObject *__pyx_f_9intbitset_9intbitset_issuperset(struct __pyx_obj_9intb if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_issuperset); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_issuperset); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_57issuperset)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_rhs); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_rhs); __Pyx_GIVEREF(__pyx_v_rhs); - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; @@ -7529,7 +7564,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_issuperset(struct __pyx_obj_9intb __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":573 + /* "intbitset.pyx":575 * cpdef issuperset(intbitset self, rhs): * """Report whether this set contains another set.""" * return self.__ge__(rhs) # <<<<<<<<<<<<<< @@ -7537,14 +7572,14 @@ static PyObject *__pyx_f_9intbitset_9intbitset_issuperset(struct __pyx_obj_9intb * # Dumping & Loading */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ge); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ge); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_rhs); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_rhs); __Pyx_GIVEREF(__pyx_v_rhs); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -7552,7 +7587,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_issuperset(struct __pyx_obj_9intb __pyx_t_2 = 0; goto __pyx_L0; - /* "intbitset.pyx":571 + /* "intbitset.pyx":573 * return self.__le__(rhs) * * cpdef issuperset(intbitset self, rhs): # <<<<<<<<<<<<<< @@ -7596,7 +7631,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_56issuperset(struct __pyx_obj_9i int __pyx_clineno = 0; __Pyx_RefNannySetupContext("issuperset", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->issuperset(__pyx_v_self, __pyx_v_rhs, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->issuperset(__pyx_v_self, __pyx_v_rhs, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -7613,7 +7648,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_56issuperset(struct __pyx_obj_9i return __pyx_r; } -/* "intbitset.pyx":576 +/* "intbitset.pyx":578 * * # Dumping & Loading * cpdef fastdump(intbitset self): # <<<<<<<<<<<<<< @@ -7639,11 +7674,11 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastdump(struct __pyx_obj_9intbit if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_fastdump); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_fastdump); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_59fastdump)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -7653,7 +7688,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastdump(struct __pyx_obj_9intbit __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":580 + /* "intbitset.pyx":582 * somewhere.""" * cdef Py_ssize_t size * size = intBitSetGetSize(( self).bitset) # <<<<<<<<<<<<<< @@ -7662,30 +7697,30 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastdump(struct __pyx_obj_9intbit */ __pyx_v_size = intBitSetGetSize(__pyx_v_self->bitset); - /* "intbitset.pyx":581 + /* "intbitset.pyx":583 * cdef Py_ssize_t size * size = intBitSetGetSize(( self).bitset) * if six.PY3: # <<<<<<<<<<<<<< * tmp = PyBytes_FromStringAndSize(self.bitset.bitset, ( size + 1) * wordbytesize) * else: */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_six); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_six); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_PY3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_PY3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { - /* "intbitset.pyx":582 + /* "intbitset.pyx":584 * size = intBitSetGetSize(( self).bitset) * if six.PY3: * tmp = PyBytes_FromStringAndSize(self.bitset.bitset, ( size + 1) * wordbytesize) # <<<<<<<<<<<<<< * else: * tmp = PyString_FromStringAndSize(self.bitset.bitset, ( size + 1) * wordbytesize) */ - __pyx_t_2 = PyBytes_FromStringAndSize(((char *)__pyx_v_self->bitset->bitset), ((__pyx_v_size + 1) * wordbytesize)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyBytes_FromStringAndSize(((char *)__pyx_v_self->bitset->bitset), ((__pyx_v_size + 1) * wordbytesize)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_v_tmp = __pyx_t_2; __pyx_t_2 = 0; @@ -7693,21 +7728,21 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastdump(struct __pyx_obj_9intbit } /*else*/ { - /* "intbitset.pyx":584 + /* "intbitset.pyx":586 * tmp = PyBytes_FromStringAndSize(self.bitset.bitset, ( size + 1) * wordbytesize) * else: * tmp = PyString_FromStringAndSize(self.bitset.bitset, ( size + 1) * wordbytesize) # <<<<<<<<<<<<<< * return zlib.compress(tmp) * */ - __pyx_t_2 = PyString_FromStringAndSize(((char *)__pyx_v_self->bitset->bitset), ((__pyx_v_size + 1) * wordbytesize)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyString_FromStringAndSize(((char *)__pyx_v_self->bitset->bitset), ((__pyx_v_size + 1) * wordbytesize)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_v_tmp = __pyx_t_2; __pyx_t_2 = 0; } __pyx_L3:; - /* "intbitset.pyx":585 + /* "intbitset.pyx":587 * else: * tmp = PyString_FromStringAndSize(self.bitset.bitset, ( size + 1) * wordbytesize) * return zlib.compress(tmp) # <<<<<<<<<<<<<< @@ -7715,17 +7750,17 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastdump(struct __pyx_obj_9intbit * cpdef fastload(intbitset self, strdump): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_zlib); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_zlib); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_compress); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_compress); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_tmp); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_tmp); __Pyx_GIVEREF(__pyx_v_tmp); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -7733,7 +7768,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastdump(struct __pyx_obj_9intbit __pyx_t_4 = 0; goto __pyx_L0; - /* "intbitset.pyx":576 + /* "intbitset.pyx":578 * * # Dumping & Loading * cpdef fastdump(intbitset self): # <<<<<<<<<<<<<< @@ -7778,7 +7813,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_58fastdump(struct __pyx_obj_9int int __pyx_clineno = 0; __Pyx_RefNannySetupContext("fastdump", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->fastdump(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->fastdump(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -7795,7 +7830,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_58fastdump(struct __pyx_obj_9int return __pyx_r; } -/* "intbitset.pyx":587 +/* "intbitset.pyx":589 * return zlib.compress(tmp) * * cpdef fastload(intbitset self, strdump): # <<<<<<<<<<<<<< @@ -7828,16 +7863,16 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastload(struct __pyx_obj_9intbit if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_fastload); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_fastload); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_61fastload)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_strdump); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_strdump); __Pyx_GIVEREF(__pyx_v_strdump); - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; @@ -7848,7 +7883,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastload(struct __pyx_obj_9intbit __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":593 + /* "intbitset.pyx":595 * cdef Py_ssize_t size * cdef const_void_ptr buf * buf = NULL # <<<<<<<<<<<<<< @@ -7857,7 +7892,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastload(struct __pyx_obj_9intbit */ __pyx_v_buf = NULL; - /* "intbitset.pyx":594 + /* "intbitset.pyx":596 * cdef const_void_ptr buf * buf = NULL * size = 0 # <<<<<<<<<<<<<< @@ -7866,7 +7901,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastload(struct __pyx_obj_9intbit */ __pyx_v_size = 0; - /* "intbitset.pyx":595 + /* "intbitset.pyx":597 * buf = NULL * size = 0 * try: # <<<<<<<<<<<<<< @@ -7880,30 +7915,30 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastload(struct __pyx_obj_9intbit __Pyx_XGOTREF(__pyx_t_6); /*try:*/ { - /* "intbitset.pyx":596 + /* "intbitset.pyx":598 * size = 0 * try: * if type(strdump) is array: # <<<<<<<<<<<<<< * strdump = strdump.tostring() * # tmp needed to not be garbage collected */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_array); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_array); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = (((PyObject *)Py_TYPE(__pyx_v_strdump)) == __pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_8 = (__pyx_t_7 != 0); if (__pyx_t_8) { - /* "intbitset.pyx":597 + /* "intbitset.pyx":599 * try: * if type(strdump) is array: * strdump = strdump.tostring() # <<<<<<<<<<<<<< * # tmp needed to not be garbage collected * tmp = zlib.decompress(strdump) */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_strdump, __pyx_n_s_tostring); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_strdump, __pyx_n_s_tostring); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_strdump, __pyx_t_3); @@ -7912,31 +7947,31 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastload(struct __pyx_obj_9intbit } __pyx_L11:; - /* "intbitset.pyx":599 + /* "intbitset.pyx":601 * strdump = strdump.tostring() * # tmp needed to not be garbage collected * tmp = zlib.decompress(strdump) # <<<<<<<<<<<<<< * if PyObject_AsReadBuffer(tmp, &buf, &size) < 0: * raise Exception() */ - __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_zlib); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_zlib); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_decompress); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_decompress); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_strdump); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_strdump); __Pyx_GIVEREF(__pyx_v_strdump); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_tmp = __pyx_t_2; __pyx_t_2 = 0; - /* "intbitset.pyx":600 + /* "intbitset.pyx":602 * # tmp needed to not be garbage collected * tmp = zlib.decompress(strdump) * if PyObject_AsReadBuffer(tmp, &buf, &size) < 0: # <<<<<<<<<<<<<< @@ -7946,21 +7981,21 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastload(struct __pyx_obj_9intbit __pyx_t_8 = ((PyObject_AsReadBuffer(__pyx_v_tmp, (&__pyx_v_buf), (&__pyx_v_size)) < 0) != 0); if (__pyx_t_8) { - /* "intbitset.pyx":601 + /* "intbitset.pyx":603 * tmp = zlib.decompress(strdump) * if PyObject_AsReadBuffer(tmp, &buf, &size) < 0: * raise Exception() # <<<<<<<<<<<<<< * if (size % wordbytesize): * ## Wrong size! */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } - /* "intbitset.pyx":602 + /* "intbitset.pyx":604 * if PyObject_AsReadBuffer(tmp, &buf, &size) < 0: * raise Exception() * if (size % wordbytesize): # <<<<<<<<<<<<<< @@ -7975,26 +8010,26 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastload(struct __pyx_obj_9intbit #ifdef WITH_THREAD PyGILState_Release(__pyx_gilstate_save); #endif - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_t_8 = (__Pyx_mod_Py_ssize_t(__pyx_v_size, wordbytesize) != 0); if (__pyx_t_8) { - /* "intbitset.pyx":604 + /* "intbitset.pyx":606 * if (size % wordbytesize): * ## Wrong size! * raise Exception() # <<<<<<<<<<<<<< * intBitSetResetFromBuffer(( self).bitset, buf, size) * except: */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } - /* "intbitset.pyx":605 + /* "intbitset.pyx":607 * ## Wrong size! * raise Exception() * intBitSetResetFromBuffer(( self).bitset, buf, size) # <<<<<<<<<<<<<< @@ -8012,7 +8047,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastload(struct __pyx_obj_9intbit __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":606 + /* "intbitset.pyx":608 * raise Exception() * intBitSetResetFromBuffer(( self).bitset, buf, size) * except: # <<<<<<<<<<<<<< @@ -8021,23 +8056,23 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastload(struct __pyx_obj_9intbit */ /*except:*/ { __Pyx_AddTraceback("intbitset.intbitset.fastload", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_3, &__pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} + if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_3, &__pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_1); - /* "intbitset.pyx":607 + /* "intbitset.pyx":609 * intBitSetResetFromBuffer(( self).bitset, buf, size) * except: * raise ValueError("strdump is corrupted") # <<<<<<<<<<<<<< * return self * */ - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__29, NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__29, NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} __Pyx_GOTREF(__pyx_t_9); __Pyx_Raise(__pyx_t_9, 0, 0, 0); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -8057,7 +8092,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastload(struct __pyx_obj_9intbit __pyx_L10_try_end:; } - /* "intbitset.pyx":608 + /* "intbitset.pyx":610 * except: * raise ValueError("strdump is corrupted") * return self # <<<<<<<<<<<<<< @@ -8069,7 +8104,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_fastload(struct __pyx_obj_9intbit __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; - /* "intbitset.pyx":587 + /* "intbitset.pyx":589 * return zlib.compress(tmp) * * cpdef fastload(intbitset self, strdump): # <<<<<<<<<<<<<< @@ -8116,7 +8151,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_60fastload(struct __pyx_obj_9int int __pyx_clineno = 0; __Pyx_RefNannySetupContext("fastload", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->fastload(__pyx_v_self, __pyx_v_strdump, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->fastload(__pyx_v_self, __pyx_v_strdump, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -8133,7 +8168,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_60fastload(struct __pyx_obj_9int return __pyx_r; } -/* "intbitset.pyx":610 +/* "intbitset.pyx":612 * return self * * cpdef copy(intbitset self): # <<<<<<<<<<<<<< @@ -8155,11 +8190,11 @@ static PyObject *__pyx_f_9intbitset_9intbitset_copy(struct __pyx_obj_9intbitset_ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_copy); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_copy); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_63copy)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -8169,7 +8204,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_copy(struct __pyx_obj_9intbitset_ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":612 + /* "intbitset.pyx":614 * cpdef copy(intbitset self): * """Return a shallow copy of a set.""" * return intbitset(self) # <<<<<<<<<<<<<< @@ -8177,19 +8212,19 @@ static PyObject *__pyx_f_9intbitset_9intbitset_copy(struct __pyx_obj_9intbitset_ * cpdef pop(intbitset self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_v_self)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self)); __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "intbitset.pyx":610 + /* "intbitset.pyx":612 * return self * * cpdef copy(intbitset self): # <<<<<<<<<<<<<< @@ -8232,7 +8267,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_62copy(struct __pyx_obj_9intbits int __pyx_clineno = 0; __Pyx_RefNannySetupContext("copy", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->copy(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->copy(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -8249,7 +8284,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_62copy(struct __pyx_obj_9intbits return __pyx_r; } -/* "intbitset.pyx":614 +/* "intbitset.pyx":616 * return intbitset(self) * * cpdef pop(intbitset self): # <<<<<<<<<<<<<< @@ -8273,11 +8308,11 @@ static PyObject *__pyx_f_9intbitset_9intbitset_pop(struct __pyx_obj_9intbitset_i if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pop); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pop); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_65pop)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -8287,7 +8322,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_pop(struct __pyx_obj_9intbitset_i __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":621 + /* "intbitset.pyx":623 * """ * cdef int ret * ret = intBitSetGetLast(self.bitset) # <<<<<<<<<<<<<< @@ -8296,7 +8331,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_pop(struct __pyx_obj_9intbitset_i */ __pyx_v_ret = intBitSetGetLast(__pyx_v_self->bitset); - /* "intbitset.pyx":622 + /* "intbitset.pyx":624 * cdef int ret * ret = intBitSetGetLast(self.bitset) * if ret < 0: # <<<<<<<<<<<<<< @@ -8306,21 +8341,21 @@ static PyObject *__pyx_f_9intbitset_9intbitset_pop(struct __pyx_obj_9intbitset_i __pyx_t_3 = ((__pyx_v_ret < 0) != 0); if (__pyx_t_3) { - /* "intbitset.pyx":623 + /* "intbitset.pyx":625 * ret = intBitSetGetLast(self.bitset) * if ret < 0: * raise KeyError("pop from an empty or infinite intbitset") # <<<<<<<<<<<<<< * intBitSetDelElem(self.bitset, ret) * return ret */ - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_KeyError, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_KeyError, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":624 + /* "intbitset.pyx":626 * if ret < 0: * raise KeyError("pop from an empty or infinite intbitset") * intBitSetDelElem(self.bitset, ret) # <<<<<<<<<<<<<< @@ -8329,7 +8364,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_pop(struct __pyx_obj_9intbitset_i */ intBitSetDelElem(__pyx_v_self->bitset, __pyx_v_ret); - /* "intbitset.pyx":625 + /* "intbitset.pyx":627 * raise KeyError("pop from an empty or infinite intbitset") * intBitSetDelElem(self.bitset, ret) * return ret # <<<<<<<<<<<<<< @@ -8337,13 +8372,13 @@ static PyObject *__pyx_f_9intbitset_9intbitset_pop(struct __pyx_obj_9intbitset_i * cpdef remove(intbitset self, int elem): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "intbitset.pyx":614 + /* "intbitset.pyx":616 * return intbitset(self) * * cpdef pop(intbitset self): # <<<<<<<<<<<<<< @@ -8386,7 +8421,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_64pop(struct __pyx_obj_9intbitse int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->pop(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->pop(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -8403,7 +8438,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_64pop(struct __pyx_obj_9intbitse return __pyx_r; } -/* "intbitset.pyx":627 +/* "intbitset.pyx":629 * return ret * * cpdef remove(intbitset self, int elem): # <<<<<<<<<<<<<< @@ -8427,18 +8462,18 @@ static PyObject *__pyx_f_9intbitset_9intbitset_remove(struct __pyx_obj_9intbitse if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_remove); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_remove); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_67remove)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_elem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_elem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; @@ -8449,7 +8484,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_remove(struct __pyx_obj_9intbitse __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":631 + /* "intbitset.pyx":633 * If the element is not a member, raise a KeyError. * """ * if self.sanity_checks: # <<<<<<<<<<<<<< @@ -8459,7 +8494,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_remove(struct __pyx_obj_9intbitse __pyx_t_4 = (__pyx_v_self->sanity_checks != 0); if (__pyx_t_4) { - /* "intbitset.pyx":632 + /* "intbitset.pyx":634 * """ * if self.sanity_checks: * if elem < 0: # <<<<<<<<<<<<<< @@ -8469,21 +8504,21 @@ static PyObject *__pyx_f_9intbitset_9intbitset_remove(struct __pyx_obj_9intbitse __pyx_t_4 = ((__pyx_v_elem < 0) != 0); if (__pyx_t_4) { - /* "intbitset.pyx":633 + /* "intbitset.pyx":635 * if self.sanity_checks: * if elem < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) */ - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":634 + /* "intbitset.pyx":636 * if elem < 0: * raise ValueError("Negative numbers, not allowed") * elif elem > maxelem: # <<<<<<<<<<<<<< @@ -8493,35 +8528,35 @@ static PyObject *__pyx_f_9intbitset_9intbitset_remove(struct __pyx_obj_9intbitse __pyx_t_4 = ((__pyx_v_elem > maxelem) != 0); if (__pyx_t_4) { - /* "intbitset.pyx":635 + /* "intbitset.pyx":637 * raise ValueError("Negative numbers, not allowed") * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) # <<<<<<<<<<<<<< * if intBitSetIsInElem(self.bitset, elem): * intBitSetDelElem(self.bitset, elem) */ - __pyx_t_1 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_Elements_must_be_s, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_Elements_must_be_s, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } goto __pyx_L3; } __pyx_L3:; - /* "intbitset.pyx":636 + /* "intbitset.pyx":638 * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) * if intBitSetIsInElem(self.bitset, elem): # <<<<<<<<<<<<<< @@ -8531,7 +8566,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_remove(struct __pyx_obj_9intbitse __pyx_t_4 = (intBitSetIsInElem(__pyx_v_self->bitset, __pyx_v_elem) != 0); if (__pyx_t_4) { - /* "intbitset.pyx":637 + /* "intbitset.pyx":639 * raise OverflowError("Elements must be <= %s" % maxelem) * if intBitSetIsInElem(self.bitset, elem): * intBitSetDelElem(self.bitset, elem) # <<<<<<<<<<<<<< @@ -8543,30 +8578,30 @@ static PyObject *__pyx_f_9intbitset_9intbitset_remove(struct __pyx_obj_9intbitse } /*else*/ { - /* "intbitset.pyx":639 + /* "intbitset.pyx":641 * intBitSetDelElem(self.bitset, elem) * else: * raise KeyError(elem) # <<<<<<<<<<<<<< * * cpdef strbits(intbitset self): */ - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_elem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_elem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_KeyError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_KeyError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L5:; - /* "intbitset.pyx":627 + /* "intbitset.pyx":629 * return ret * * cpdef remove(intbitset self, int elem): # <<<<<<<<<<<<<< @@ -8601,7 +8636,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_67remove(PyObject *__pyx_v_self, __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("remove (wrapper)", 0); assert(__pyx_arg_elem); { - __pyx_v_elem = __Pyx_PyInt_As_int(__pyx_arg_elem); if (unlikely((__pyx_v_elem == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_elem = __Pyx_PyInt_As_int(__pyx_arg_elem); if (unlikely((__pyx_v_elem == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -8625,7 +8660,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_66remove(struct __pyx_obj_9intbi int __pyx_clineno = 0; __Pyx_RefNannySetupContext("remove", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->remove(__pyx_v_self, __pyx_v_elem, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->remove(__pyx_v_self, __pyx_v_elem, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -8642,7 +8677,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_66remove(struct __pyx_obj_9intbi return __pyx_r; } -/* "intbitset.pyx":641 +/* "intbitset.pyx":643 * raise KeyError(elem) * * cpdef strbits(intbitset self): # <<<<<<<<<<<<<< @@ -8673,11 +8708,11 @@ static PyObject *__pyx_f_9intbitset_9intbitset_strbits(struct __pyx_obj_9intbits if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_strbits); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_strbits); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_69strbits)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -8687,7 +8722,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_strbits(struct __pyx_obj_9intbits __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":647 + /* "intbitset.pyx":649 * cdef int i * cdef int last * if ( self).bitset.trailing_bits: # <<<<<<<<<<<<<< @@ -8697,21 +8732,21 @@ static PyObject *__pyx_f_9intbitset_9intbitset_strbits(struct __pyx_obj_9intbits __pyx_t_3 = (__pyx_v_self->bitset->trailing_bits != 0); if (__pyx_t_3) { - /* "intbitset.pyx":648 + /* "intbitset.pyx":650 * cdef int last * if ( self).bitset.trailing_bits: * raise OverflowError("It's impossible to print an infinite set.") # <<<<<<<<<<<<<< * last = 0 * ret = [] */ - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":649 + /* "intbitset.pyx":651 * if ( self).bitset.trailing_bits: * raise OverflowError("It's impossible to print an infinite set.") * last = 0 # <<<<<<<<<<<<<< @@ -8720,19 +8755,19 @@ static PyObject *__pyx_f_9intbitset_9intbitset_strbits(struct __pyx_obj_9intbits */ __pyx_v_last = 0; - /* "intbitset.pyx":650 + /* "intbitset.pyx":652 * raise OverflowError("It's impossible to print an infinite set.") * last = 0 * ret = [] # <<<<<<<<<<<<<< * for i in self: * ret.append('0'*(i-last)+'1') */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_ret = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "intbitset.pyx":651 + /* "intbitset.pyx":653 * last = 0 * ret = [] * for i in self: # <<<<<<<<<<<<<< @@ -8743,7 +8778,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_strbits(struct __pyx_obj_9intbits __pyx_t_1 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_1); __pyx_t_4 = 0; __pyx_t_5 = NULL; } else { - __pyx_t_4 = -1; __pyx_t_1 = PyObject_GetIter(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = -1; __pyx_t_1 = PyObject_GetIter(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = Py_TYPE(__pyx_t_1)->tp_iternext; } @@ -8751,16 +8786,16 @@ static PyObject *__pyx_f_9intbitset_9intbitset_strbits(struct __pyx_obj_9intbits if (!__pyx_t_5 && PyList_CheckExact(__pyx_t_1)) { if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else if (!__pyx_t_5 && PyTuple_CheckExact(__pyx_t_1)) { if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else { __pyx_t_2 = __pyx_t_5(__pyx_t_1); @@ -8768,35 +8803,35 @@ static PyObject *__pyx_f_9intbitset_9intbitset_strbits(struct __pyx_obj_9intbits PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } break; } __Pyx_GOTREF(__pyx_t_2); } - __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_i = __pyx_t_6; - /* "intbitset.pyx":652 + /* "intbitset.pyx":654 * ret = [] * for i in self: * ret.append('0'*(i-last)+'1') # <<<<<<<<<<<<<< * last = i+1 * return ''.join(ret) */ - __pyx_t_2 = __Pyx_PyInt_From_int((__pyx_v_i - __pyx_v_last)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyInt_From_int((__pyx_v_i - __pyx_v_last)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_7 = PyNumber_Multiply(__pyx_kp_s_0, __pyx_t_2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = PyNumber_Multiply(__pyx_kp_s_0, __pyx_t_2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyNumber_Add(__pyx_t_7, __pyx_kp_s_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyNumber_Add(__pyx_t_7, __pyx_kp_s_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_ret, __pyx_t_2); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_ret, __pyx_t_2); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":653 + /* "intbitset.pyx":655 * for i in self: * ret.append('0'*(i-last)+'1') * last = i+1 # <<<<<<<<<<<<<< @@ -8807,7 +8842,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_strbits(struct __pyx_obj_9intbits } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "intbitset.pyx":654 + /* "intbitset.pyx":656 * ret.append('0'*(i-last)+'1') * last = i+1 * return ''.join(ret) # <<<<<<<<<<<<<< @@ -8815,13 +8850,13 @@ static PyObject *__pyx_f_9intbitset_9intbitset_strbits(struct __pyx_obj_9intbits * def update(self not None, *args): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyString_Join(__pyx_kp_s__33, __pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyString_Join(__pyx_kp_s__33, __pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "intbitset.pyx":641 + /* "intbitset.pyx":643 * raise KeyError(elem) * * cpdef strbits(intbitset self): # <<<<<<<<<<<<<< @@ -8866,7 +8901,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_68strbits(struct __pyx_obj_9intb int __pyx_clineno = 0; __Pyx_RefNannySetupContext("strbits", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->strbits(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->strbits(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -8883,7 +8918,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_68strbits(struct __pyx_obj_9intb return __pyx_r; } -/* "intbitset.pyx":656 +/* "intbitset.pyx":658 * return ''.join(ret) * * def update(self not None, *args): # <<<<<<<<<<<<<< @@ -8906,7 +8941,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_71update(PyObject *__pyx_v_self, __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 658; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_70update(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), __pyx_v_args); @@ -8936,7 +8971,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_70update(struct __pyx_obj_9intbi int __pyx_clineno = 0; __Pyx_RefNannySetupContext("update", 0); - /* "intbitset.pyx":659 + /* "intbitset.pyx":661 * """Update the intbitset, adding elements from all others.""" * cdef intbitset iarg * for arg in args: # <<<<<<<<<<<<<< @@ -8947,32 +8982,32 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_70update(struct __pyx_obj_9intbi for (;;) { if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 661; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 661; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_XDECREF_SET(__pyx_v_arg, __pyx_t_3); __pyx_t_3 = 0; - /* "intbitset.pyx":660 + /* "intbitset.pyx":662 * cdef intbitset iarg * for arg in args: * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) # <<<<<<<<<<<<<< * intBitSetIUnion(self.bitset, iarg.bitset) * */ - __pyx_t_4 = PyObject_HasAttr(__pyx_v_arg, __pyx_n_s_bitset); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 660; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_HasAttr(__pyx_v_arg, __pyx_n_s_bitset); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if ((__pyx_t_4 != 0)) { - if (!(likely(((__pyx_v_arg) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_arg, __pyx_ptype_9intbitset_intbitset))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 660; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_v_arg) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_arg, __pyx_ptype_9intbitset_intbitset))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_INCREF(__pyx_v_arg); __pyx_t_3 = __pyx_v_arg; } else { - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 660; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_arg); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_arg); __Pyx_GIVEREF(__pyx_v_arg); - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 660; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_3 = __pyx_t_6; @@ -8981,7 +9016,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_70update(struct __pyx_obj_9intbi __Pyx_XDECREF_SET(__pyx_v_iarg, ((struct __pyx_obj_9intbitset_intbitset *)__pyx_t_3)); __pyx_t_3 = 0; - /* "intbitset.pyx":661 + /* "intbitset.pyx":663 * for arg in args: * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) * intBitSetIUnion(self.bitset, iarg.bitset) # <<<<<<<<<<<<<< @@ -8992,7 +9027,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_70update(struct __pyx_obj_9intbi } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "intbitset.pyx":656 + /* "intbitset.pyx":658 * return ''.join(ret) * * def update(self not None, *args): # <<<<<<<<<<<<<< @@ -9018,7 +9053,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_70update(struct __pyx_obj_9intbi return __pyx_r; } -/* "intbitset.pyx":665 +/* "intbitset.pyx":667 * union_update = update * * def intersection_update(self not None, *args): # <<<<<<<<<<<<<< @@ -9041,7 +9076,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_73intersection_update(PyObject * __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_72intersection_update(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), __pyx_v_args); @@ -9071,7 +9106,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_72intersection_update(struct __p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("intersection_update", 0); - /* "intbitset.pyx":668 + /* "intbitset.pyx":670 * """Update the intbitset, keeping only elements found in it and all others.""" * cdef intbitset iarg * for arg in args: # <<<<<<<<<<<<<< @@ -9082,32 +9117,32 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_72intersection_update(struct __p for (;;) { if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 668; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 668; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_XDECREF_SET(__pyx_v_arg, __pyx_t_3); __pyx_t_3 = 0; - /* "intbitset.pyx":669 + /* "intbitset.pyx":671 * cdef intbitset iarg * for arg in args: * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) # <<<<<<<<<<<<<< * intBitSetIIntersection(self.bitset, iarg.bitset) * */ - __pyx_t_4 = PyObject_HasAttr(__pyx_v_arg, __pyx_n_s_bitset); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_HasAttr(__pyx_v_arg, __pyx_n_s_bitset); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if ((__pyx_t_4 != 0)) { - if (!(likely(((__pyx_v_arg) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_arg, __pyx_ptype_9intbitset_intbitset))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_v_arg) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_arg, __pyx_ptype_9intbitset_intbitset))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_INCREF(__pyx_v_arg); __pyx_t_3 = __pyx_v_arg; } else { - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_arg); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_arg); __Pyx_GIVEREF(__pyx_v_arg); - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_3 = __pyx_t_6; @@ -9116,7 +9151,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_72intersection_update(struct __p __Pyx_XDECREF_SET(__pyx_v_iarg, ((struct __pyx_obj_9intbitset_intbitset *)__pyx_t_3)); __pyx_t_3 = 0; - /* "intbitset.pyx":670 + /* "intbitset.pyx":672 * for arg in args: * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) * intBitSetIIntersection(self.bitset, iarg.bitset) # <<<<<<<<<<<<<< @@ -9127,7 +9162,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_72intersection_update(struct __p } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "intbitset.pyx":665 + /* "intbitset.pyx":667 * union_update = update * * def intersection_update(self not None, *args): # <<<<<<<<<<<<<< @@ -9153,7 +9188,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_72intersection_update(struct __p return __pyx_r; } -/* "intbitset.pyx":672 +/* "intbitset.pyx":674 * intBitSetIIntersection(self.bitset, iarg.bitset) * * def difference_update(self not None, *args): # <<<<<<<<<<<<<< @@ -9176,7 +9211,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_75difference_update(PyObject *__ __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_74difference_update(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), __pyx_v_args); @@ -9206,7 +9241,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_74difference_update(struct __pyx int __pyx_clineno = 0; __Pyx_RefNannySetupContext("difference_update", 0); - /* "intbitset.pyx":675 + /* "intbitset.pyx":677 * """Update the intbitset, removing elements found in others.""" * cdef intbitset iarg * for arg in args: # <<<<<<<<<<<<<< @@ -9217,32 +9252,32 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_74difference_update(struct __pyx for (;;) { if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_XDECREF_SET(__pyx_v_arg, __pyx_t_3); __pyx_t_3 = 0; - /* "intbitset.pyx":676 + /* "intbitset.pyx":678 * cdef intbitset iarg * for arg in args: * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) # <<<<<<<<<<<<<< * intBitSetISub(self.bitset, iarg.bitset) * */ - __pyx_t_4 = PyObject_HasAttr(__pyx_v_arg, __pyx_n_s_bitset); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_HasAttr(__pyx_v_arg, __pyx_n_s_bitset); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if ((__pyx_t_4 != 0)) { - if (!(likely(((__pyx_v_arg) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_arg, __pyx_ptype_9intbitset_intbitset))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_v_arg) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_arg, __pyx_ptype_9intbitset_intbitset))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_INCREF(__pyx_v_arg); __pyx_t_3 = __pyx_v_arg; } else { - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_arg); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_arg); __Pyx_GIVEREF(__pyx_v_arg); - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_3 = __pyx_t_6; @@ -9251,7 +9286,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_74difference_update(struct __pyx __Pyx_XDECREF_SET(__pyx_v_iarg, ((struct __pyx_obj_9intbitset_intbitset *)__pyx_t_3)); __pyx_t_3 = 0; - /* "intbitset.pyx":677 + /* "intbitset.pyx":679 * for arg in args: * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) * intBitSetISub(self.bitset, iarg.bitset) # <<<<<<<<<<<<<< @@ -9262,7 +9297,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_74difference_update(struct __pyx } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "intbitset.pyx":672 + /* "intbitset.pyx":674 * intBitSetIIntersection(self.bitset, iarg.bitset) * * def difference_update(self not None, *args): # <<<<<<<<<<<<<< @@ -9288,7 +9323,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_74difference_update(struct __pyx return __pyx_r; } -/* "intbitset.pyx":679 +/* "intbitset.pyx":681 * intBitSetISub(self.bitset, iarg.bitset) * * def union(self not None, *args): # <<<<<<<<<<<<<< @@ -9311,7 +9346,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_77union(PyObject *__pyx_v_self, __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 681; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_76union(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), __pyx_v_args); @@ -9342,25 +9377,25 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_76union(struct __pyx_obj_9intbit int __pyx_clineno = 0; __Pyx_RefNannySetupContext("union", 0); - /* "intbitset.pyx":681 + /* "intbitset.pyx":683 * def union(self not None, *args): * """Return a new intbitset with elements from the intbitset and all others.""" * cdef intbitset ret = intbitset(self) # <<<<<<<<<<<<<< * cdef intbitset iarg * for arg in args: */ - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 681; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_v_self)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self)); __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 681; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ret = ((struct __pyx_obj_9intbitset_intbitset *)__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":683 + /* "intbitset.pyx":685 * cdef intbitset ret = intbitset(self) * cdef intbitset iarg * for arg in args: # <<<<<<<<<<<<<< @@ -9371,32 +9406,32 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_76union(struct __pyx_obj_9intbit for (;;) { if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_XDECREF_SET(__pyx_v_arg, __pyx_t_1); __pyx_t_1 = 0; - /* "intbitset.pyx":684 + /* "intbitset.pyx":686 * cdef intbitset iarg * for arg in args: * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) # <<<<<<<<<<<<<< * intBitSetIUnion(ret.bitset, iarg.bitset) * return ret */ - __pyx_t_4 = PyObject_HasAttr(__pyx_v_arg, __pyx_n_s_bitset); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_HasAttr(__pyx_v_arg, __pyx_n_s_bitset); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 686; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if ((__pyx_t_4 != 0)) { - if (!(likely(((__pyx_v_arg) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_arg, __pyx_ptype_9intbitset_intbitset))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_v_arg) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_arg, __pyx_ptype_9intbitset_intbitset))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 686; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_INCREF(__pyx_v_arg); __pyx_t_1 = __pyx_v_arg; } else { - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 686; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_arg); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_arg); __Pyx_GIVEREF(__pyx_v_arg); - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 686; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __pyx_t_6; @@ -9405,7 +9440,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_76union(struct __pyx_obj_9intbit __Pyx_XDECREF_SET(__pyx_v_iarg, ((struct __pyx_obj_9intbitset_intbitset *)__pyx_t_1)); __pyx_t_1 = 0; - /* "intbitset.pyx":685 + /* "intbitset.pyx":687 * for arg in args: * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) * intBitSetIUnion(ret.bitset, iarg.bitset) # <<<<<<<<<<<<<< @@ -9416,7 +9451,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_76union(struct __pyx_obj_9intbit } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":686 + /* "intbitset.pyx":688 * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) * intBitSetIUnion(ret.bitset, iarg.bitset) * return ret # <<<<<<<<<<<<<< @@ -9428,7 +9463,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_76union(struct __pyx_obj_9intbit __pyx_r = ((PyObject *)__pyx_v_ret); goto __pyx_L0; - /* "intbitset.pyx":679 + /* "intbitset.pyx":681 * intBitSetISub(self.bitset, iarg.bitset) * * def union(self not None, *args): # <<<<<<<<<<<<<< @@ -9453,7 +9488,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_76union(struct __pyx_obj_9intbit return __pyx_r; } -/* "intbitset.pyx":688 +/* "intbitset.pyx":690 * return ret * * def intersection(self not None, *args): # <<<<<<<<<<<<<< @@ -9476,7 +9511,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_79intersection(PyObject *__pyx_v __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_78intersection(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), __pyx_v_args); @@ -9507,25 +9542,25 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_78intersection(struct __pyx_obj_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("intersection", 0); - /* "intbitset.pyx":690 + /* "intbitset.pyx":692 * def intersection(self not None, *args): * """Return a new intbitset with elements common to the intbitset and all others.""" * cdef intbitset ret = intbitset(self) # <<<<<<<<<<<<<< * cdef intbitset iarg * for arg in args: */ - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_v_self)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self)); __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ret = ((struct __pyx_obj_9intbitset_intbitset *)__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":692 + /* "intbitset.pyx":694 * cdef intbitset ret = intbitset(self) * cdef intbitset iarg * for arg in args: # <<<<<<<<<<<<<< @@ -9536,32 +9571,32 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_78intersection(struct __pyx_obj_ for (;;) { if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_XDECREF_SET(__pyx_v_arg, __pyx_t_1); __pyx_t_1 = 0; - /* "intbitset.pyx":693 + /* "intbitset.pyx":695 * cdef intbitset iarg * for arg in args: * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) # <<<<<<<<<<<<<< * intBitSetIIntersection(ret.bitset, iarg.bitset) * return ret */ - __pyx_t_4 = PyObject_HasAttr(__pyx_v_arg, __pyx_n_s_bitset); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_HasAttr(__pyx_v_arg, __pyx_n_s_bitset); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if ((__pyx_t_4 != 0)) { - if (!(likely(((__pyx_v_arg) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_arg, __pyx_ptype_9intbitset_intbitset))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_v_arg) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_arg, __pyx_ptype_9intbitset_intbitset))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_INCREF(__pyx_v_arg); __pyx_t_1 = __pyx_v_arg; } else { - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_arg); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_arg); __Pyx_GIVEREF(__pyx_v_arg); - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __pyx_t_6; @@ -9570,7 +9605,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_78intersection(struct __pyx_obj_ __Pyx_XDECREF_SET(__pyx_v_iarg, ((struct __pyx_obj_9intbitset_intbitset *)__pyx_t_1)); __pyx_t_1 = 0; - /* "intbitset.pyx":694 + /* "intbitset.pyx":696 * for arg in args: * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) * intBitSetIIntersection(ret.bitset, iarg.bitset) # <<<<<<<<<<<<<< @@ -9581,7 +9616,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_78intersection(struct __pyx_obj_ } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":695 + /* "intbitset.pyx":697 * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) * intBitSetIIntersection(ret.bitset, iarg.bitset) * return ret # <<<<<<<<<<<<<< @@ -9593,7 +9628,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_78intersection(struct __pyx_obj_ __pyx_r = ((PyObject *)__pyx_v_ret); goto __pyx_L0; - /* "intbitset.pyx":688 + /* "intbitset.pyx":690 * return ret * * def intersection(self not None, *args): # <<<<<<<<<<<<<< @@ -9618,7 +9653,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_78intersection(struct __pyx_obj_ return __pyx_r; } -/* "intbitset.pyx":697 +/* "intbitset.pyx":699 * return ret * * def difference(self not None, *args): # <<<<<<<<<<<<<< @@ -9641,7 +9676,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_81difference(PyObject *__pyx_v_s __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 699; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_r = __pyx_pf_9intbitset_9intbitset_80difference(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), __pyx_v_args); @@ -9672,25 +9707,25 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_80difference(struct __pyx_obj_9i int __pyx_clineno = 0; __Pyx_RefNannySetupContext("difference", 0); - /* "intbitset.pyx":699 + /* "intbitset.pyx":701 * def difference(self not None, *args): * """Return a new intbitset with elements from the intbitset that are not in the others.""" * cdef intbitset ret = intbitset(self) # <<<<<<<<<<<<<< * cdef intbitset iarg * for arg in args: */ - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 699; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 701; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_v_self)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self)); __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 699; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 701; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ret = ((struct __pyx_obj_9intbitset_intbitset *)__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":701 + /* "intbitset.pyx":703 * cdef intbitset ret = intbitset(self) * cdef intbitset iarg * for arg in args: # <<<<<<<<<<<<<< @@ -9701,32 +9736,32 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_80difference(struct __pyx_obj_9i for (;;) { if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 701; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 703; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 701; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 703; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_XDECREF_SET(__pyx_v_arg, __pyx_t_1); __pyx_t_1 = 0; - /* "intbitset.pyx":702 + /* "intbitset.pyx":704 * cdef intbitset iarg * for arg in args: * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) # <<<<<<<<<<<<<< * intBitSetISub(ret.bitset, iarg.bitset) * return ret */ - __pyx_t_4 = PyObject_HasAttr(__pyx_v_arg, __pyx_n_s_bitset); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_HasAttr(__pyx_v_arg, __pyx_n_s_bitset); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 704; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if ((__pyx_t_4 != 0)) { - if (!(likely(((__pyx_v_arg) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_arg, __pyx_ptype_9intbitset_intbitset))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_v_arg) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_arg, __pyx_ptype_9intbitset_intbitset))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 704; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_INCREF(__pyx_v_arg); __pyx_t_1 = __pyx_v_arg; } else { - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 704; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_arg); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_arg); __Pyx_GIVEREF(__pyx_v_arg); - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9intbitset_intbitset)), __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 704; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __pyx_t_6; @@ -9735,7 +9770,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_80difference(struct __pyx_obj_9i __Pyx_XDECREF_SET(__pyx_v_iarg, ((struct __pyx_obj_9intbitset_intbitset *)__pyx_t_1)); __pyx_t_1 = 0; - /* "intbitset.pyx":703 + /* "intbitset.pyx":705 * for arg in args: * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) * intBitSetISub(ret.bitset, iarg.bitset) # <<<<<<<<<<<<<< @@ -9746,7 +9781,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_80difference(struct __pyx_obj_9i } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":704 + /* "intbitset.pyx":706 * iarg = arg if hasattr(arg, "bitset") else intbitset(arg) * intBitSetISub(ret.bitset, iarg.bitset) * return ret # <<<<<<<<<<<<<< @@ -9758,7 +9793,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_80difference(struct __pyx_obj_9i __pyx_r = ((PyObject *)__pyx_v_ret); goto __pyx_L0; - /* "intbitset.pyx":697 + /* "intbitset.pyx":699 * return ret * * def difference(self not None, *args): # <<<<<<<<<<<<<< @@ -9783,7 +9818,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_80difference(struct __pyx_obj_9i return __pyx_r; } -/* "intbitset.pyx":706 +/* "intbitset.pyx":708 * return ret * * def isdisjoint(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -9802,9 +9837,9 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_83isdisjoint(PyObject *__pyx_v_s __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("isdisjoint (wrapper)", 0); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { - PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "self"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rhs), __pyx_ptype_9intbitset_intbitset, 0, "rhs", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_9intbitset_9intbitset_82isdisjoint(((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_self), ((struct __pyx_obj_9intbitset_intbitset *)__pyx_v_rhs)); /* function exit code */ @@ -9826,7 +9861,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_82isdisjoint(struct __pyx_obj_9i int __pyx_clineno = 0; __Pyx_RefNannySetupContext("isdisjoint", 0); - /* "intbitset.pyx":708 + /* "intbitset.pyx":710 * def isdisjoint(self not None, intbitset rhs not None): * """Return True if two intbitsets have a null intersection.""" * return bool(self & rhs) # <<<<<<<<<<<<<< @@ -9834,17 +9869,17 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_82isdisjoint(struct __pyx_obj_9i * cpdef update_with_signs(intbitset self, rhs): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = PyNumber_And(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_rhs)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyNumber_And(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_rhs)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyBool_FromLong((!(!__pyx_t_2))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyBool_FromLong((!(!__pyx_t_2))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "intbitset.pyx":706 + /* "intbitset.pyx":708 * return ret * * def isdisjoint(self not None, intbitset rhs not None): # <<<<<<<<<<<<<< @@ -9863,7 +9898,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_82isdisjoint(struct __pyx_obj_9i return __pyx_r; } -/* "intbitset.pyx":710 +/* "intbitset.pyx":712 * return bool(self & rhs) * * cpdef update_with_signs(intbitset self, rhs): # <<<<<<<<<<<<<< @@ -9897,16 +9932,16 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_update_with_signs); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_update_with_signs); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 712; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_85update_with_signs)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 712; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_rhs); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_rhs); __Pyx_GIVEREF(__pyx_v_rhs); - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 712; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; @@ -9917,7 +9952,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":714 + /* "intbitset.pyx":716 * whose value are less than 0 and add every integer whose value is 0 or more""" * cdef int value * try: # <<<<<<<<<<<<<< @@ -9931,7 +9966,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob __Pyx_XGOTREF(__pyx_t_6); /*try:*/ { - /* "intbitset.pyx":715 + /* "intbitset.pyx":717 * cdef int value * try: * if self.sanity_checks: # <<<<<<<<<<<<<< @@ -9941,7 +9976,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob __pyx_t_7 = (__pyx_v_self->sanity_checks != 0); if (__pyx_t_7) { - /* "intbitset.pyx":716 + /* "intbitset.pyx":718 * try: * if self.sanity_checks: * for value, sign in rhs.iteritems(): # <<<<<<<<<<<<<< @@ -9951,9 +9986,9 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob __pyx_t_8 = 0; if (unlikely(__pyx_v_rhs == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "iteritems"); - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } - __pyx_t_3 = __Pyx_dict_iterator(__pyx_v_rhs, 0, __pyx_n_s_iteritems, (&__pyx_t_9), (&__pyx_t_10)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_3 = __Pyx_dict_iterator(__pyx_v_rhs, 0, __pyx_n_s_iteritems, (&__pyx_t_9), (&__pyx_t_10)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = __pyx_t_3; @@ -9961,16 +9996,16 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob while (1) { __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_9, &__pyx_t_8, &__pyx_t_3, &__pyx_t_2, NULL, __pyx_t_10); if (unlikely(__pyx_t_11 == 0)) break; - if (unlikely(__pyx_t_11 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__pyx_t_11 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_2); - __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_value = __pyx_t_11; __Pyx_XDECREF_SET(__pyx_v_sign, __pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":717 + /* "intbitset.pyx":719 * if self.sanity_checks: * for value, sign in rhs.iteritems(): * if value < 0: # <<<<<<<<<<<<<< @@ -9980,21 +10015,21 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob __pyx_t_7 = ((__pyx_v_value < 0) != 0); if (__pyx_t_7) { - /* "intbitset.pyx":718 + /* "intbitset.pyx":720 * for value, sign in rhs.iteritems(): * if value < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif value > maxelem: * raise OverflowError("Elements must <= %s" % maxelem) */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } - /* "intbitset.pyx":719 + /* "intbitset.pyx":721 * if value < 0: * raise ValueError("Negative numbers, not allowed") * elif value > maxelem: # <<<<<<<<<<<<<< @@ -10004,44 +10039,44 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob __pyx_t_7 = ((__pyx_v_value > maxelem) != 0); if (__pyx_t_7) { - /* "intbitset.pyx":720 + /* "intbitset.pyx":722 * raise ValueError("Negative numbers, not allowed") * elif value > maxelem: * raise OverflowError("Elements must <= %s" % maxelem) # <<<<<<<<<<<<<< * if sign < 0: * intBitSetDelElem(self.bitset, value) */ - __pyx_t_2 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_2 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 722; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_Elements_must_s, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_Elements_must_s, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 722; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 722; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 722; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 722; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } - /* "intbitset.pyx":721 + /* "intbitset.pyx":723 * elif value > maxelem: * raise OverflowError("Elements must <= %s" % maxelem) * if sign < 0: # <<<<<<<<<<<<<< * intBitSetDelElem(self.bitset, value) * else: */ - __pyx_t_3 = PyObject_RichCompare(__pyx_v_sign, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 721; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 721; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_3 = PyObject_RichCompare(__pyx_v_sign, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_7) { - /* "intbitset.pyx":722 + /* "intbitset.pyx":724 * raise OverflowError("Elements must <= %s" % maxelem) * if sign < 0: * intBitSetDelElem(self.bitset, value) # <<<<<<<<<<<<<< @@ -10053,7 +10088,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob } /*else*/ { - /* "intbitset.pyx":724 + /* "intbitset.pyx":726 * intBitSetDelElem(self.bitset, value) * else: * intBitSetAddElem(self.bitset, value) # <<<<<<<<<<<<<< @@ -10069,7 +10104,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob } /*else*/ { - /* "intbitset.pyx":726 + /* "intbitset.pyx":728 * intBitSetAddElem(self.bitset, value) * else: * for value, sign in rhs.iteritems(): # <<<<<<<<<<<<<< @@ -10079,9 +10114,9 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob __pyx_t_9 = 0; if (unlikely(__pyx_v_rhs == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "iteritems"); - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 726; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 728; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } - __pyx_t_3 = __Pyx_dict_iterator(__pyx_v_rhs, 0, __pyx_n_s_iteritems, (&__pyx_t_8), (&__pyx_t_10)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 726; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_3 = __Pyx_dict_iterator(__pyx_v_rhs, 0, __pyx_n_s_iteritems, (&__pyx_t_8), (&__pyx_t_10)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 728; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = __pyx_t_3; @@ -10089,28 +10124,28 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob while (1) { __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_8, &__pyx_t_9, &__pyx_t_3, &__pyx_t_2, NULL, __pyx_t_10); if (unlikely(__pyx_t_11 == 0)) break; - if (unlikely(__pyx_t_11 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 726; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__pyx_t_11 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 728; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_2); - __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 726; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 728; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_value = __pyx_t_11; __Pyx_XDECREF_SET(__pyx_v_sign, __pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":727 + /* "intbitset.pyx":729 * else: * for value, sign in rhs.iteritems(): * if sign < 0: # <<<<<<<<<<<<<< * intBitSetDelElem(self.bitset, value) * else: */ - __pyx_t_2 = PyObject_RichCompare(__pyx_v_sign, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_2 = PyObject_RichCompare(__pyx_v_sign, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_7) { - /* "intbitset.pyx":728 + /* "intbitset.pyx":730 * for value, sign in rhs.iteritems(): * if sign < 0: * intBitSetDelElem(self.bitset, value) # <<<<<<<<<<<<<< @@ -10122,7 +10157,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob } /*else*/ { - /* "intbitset.pyx":730 + /* "intbitset.pyx":732 * intBitSetDelElem(self.bitset, value) * else: * intBitSetAddElem(self.bitset, value) # <<<<<<<<<<<<<< @@ -10146,7 +10181,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "intbitset.pyx":731 + /* "intbitset.pyx":733 * else: * intBitSetAddElem(self.bitset, value) * except AttributeError: # <<<<<<<<<<<<<< @@ -10156,23 +10191,23 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob __pyx_t_10 = PyErr_ExceptionMatches(__pyx_builtin_AttributeError); if (__pyx_t_10) { __Pyx_AddTraceback("intbitset.intbitset.update_with_signs", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 731; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} + if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_3); - /* "intbitset.pyx":732 + /* "intbitset.pyx":734 * intBitSetAddElem(self.bitset, value) * except AttributeError: * raise TypeError("rhs should be a valid dictionary with integers keys and integer values") # <<<<<<<<<<<<<< * * cpdef get_size(intbitset self): */ - __pyx_t_12 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__35, NULL); if (unlikely(!__pyx_t_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 732; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} + __pyx_t_12 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__35, NULL); if (unlikely(!__pyx_t_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 734; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} __Pyx_GOTREF(__pyx_t_12); __Pyx_Raise(__pyx_t_12, 0, 0, 0); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 732; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 734; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -10193,7 +10228,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_update_with_signs(struct __pyx_ob __pyx_L10_try_end:; } - /* "intbitset.pyx":710 + /* "intbitset.pyx":712 * return bool(self & rhs) * * cpdef update_with_signs(intbitset self, rhs): # <<<<<<<<<<<<<< @@ -10241,7 +10276,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_84update_with_signs(struct __pyx int __pyx_clineno = 0; __Pyx_RefNannySetupContext("update_with_signs", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->update_with_signs(__pyx_v_self, __pyx_v_rhs, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->update_with_signs(__pyx_v_self, __pyx_v_rhs, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 712; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -10258,7 +10293,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_84update_with_signs(struct __pyx return __pyx_r; } -/* "intbitset.pyx":734 +/* "intbitset.pyx":736 * raise TypeError("rhs should be a valid dictionary with integers keys and integer values") * * cpdef get_size(intbitset self): # <<<<<<<<<<<<<< @@ -10280,11 +10315,11 @@ static PyObject *__pyx_f_9intbitset_9intbitset_get_size(struct __pyx_obj_9intbit if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_size); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 734; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_size); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 736; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_87get_size)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 734; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 736; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -10294,7 +10329,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_get_size(struct __pyx_obj_9intbit __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":735 + /* "intbitset.pyx":737 * * cpdef get_size(intbitset self): * return intBitSetGetSize(self.bitset) # <<<<<<<<<<<<<< @@ -10302,13 +10337,13 @@ static PyObject *__pyx_f_9intbitset_9intbitset_get_size(struct __pyx_obj_9intbit * cpdef get_allocated(intbitset self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_int(intBitSetGetSize(__pyx_v_self->bitset)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 735; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyInt_From_int(intBitSetGetSize(__pyx_v_self->bitset)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 737; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "intbitset.pyx":734 + /* "intbitset.pyx":736 * raise TypeError("rhs should be a valid dictionary with integers keys and integer values") * * cpdef get_size(intbitset self): # <<<<<<<<<<<<<< @@ -10350,7 +10385,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_86get_size(struct __pyx_obj_9int int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_size", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->get_size(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 734; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->get_size(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 736; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -10367,7 +10402,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_86get_size(struct __pyx_obj_9int return __pyx_r; } -/* "intbitset.pyx":737 +/* "intbitset.pyx":739 * return intBitSetGetSize(self.bitset) * * cpdef get_allocated(intbitset self): # <<<<<<<<<<<<<< @@ -10389,11 +10424,11 @@ static PyObject *__pyx_f_9intbitset_9intbitset_get_allocated(struct __pyx_obj_9i if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_allocated); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 737; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_allocated); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_89get_allocated)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 737; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -10403,7 +10438,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_get_allocated(struct __pyx_obj_9i __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":738 + /* "intbitset.pyx":740 * * cpdef get_allocated(intbitset self): * return intBitSetGetAllocated(self.bitset) # <<<<<<<<<<<<<< @@ -10411,13 +10446,13 @@ static PyObject *__pyx_f_9intbitset_9intbitset_get_allocated(struct __pyx_obj_9i * cpdef is_infinite(intbitset self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_int(intBitSetGetAllocated(__pyx_v_self->bitset)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 738; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyInt_From_int(intBitSetGetAllocated(__pyx_v_self->bitset)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "intbitset.pyx":737 + /* "intbitset.pyx":739 * return intBitSetGetSize(self.bitset) * * cpdef get_allocated(intbitset self): # <<<<<<<<<<<<<< @@ -10459,7 +10494,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_88get_allocated(struct __pyx_obj int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_allocated", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->get_allocated(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 737; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->get_allocated(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -10476,7 +10511,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_88get_allocated(struct __pyx_obj return __pyx_r; } -/* "intbitset.pyx":740 +/* "intbitset.pyx":742 * return intBitSetGetAllocated(self.bitset) * * cpdef is_infinite(intbitset self): # <<<<<<<<<<<<<< @@ -10498,11 +10533,11 @@ static PyObject *__pyx_f_9intbitset_9intbitset_is_infinite(struct __pyx_obj_9int if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_is_infinite); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_is_infinite); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_91is_infinite)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -10512,7 +10547,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_is_infinite(struct __pyx_obj_9int __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":743 + /* "intbitset.pyx":745 * """Return True if the intbitset is infinite. (i.e. trailing_bits=True * was used in the constructor.)""" * return self.bitset.trailing_bits != 0 # <<<<<<<<<<<<<< @@ -10520,13 +10555,13 @@ static PyObject *__pyx_f_9intbitset_9intbitset_is_infinite(struct __pyx_obj_9int * cpdef extract_finite_list(intbitset self, int up_to=-1): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->bitset->trailing_bits != 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 743; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->bitset->trailing_bits != 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "intbitset.pyx":740 + /* "intbitset.pyx":742 * return intBitSetGetAllocated(self.bitset) * * cpdef is_infinite(intbitset self): # <<<<<<<<<<<<<< @@ -10569,7 +10604,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_90is_infinite(struct __pyx_obj_9 int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_infinite", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->is_infinite(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->is_infinite(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -10586,7 +10621,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_90is_infinite(struct __pyx_obj_9 return __pyx_r; } -/* "intbitset.pyx":745 +/* "intbitset.pyx":747 * return self.bitset.trailing_bits != 0 * * cpdef extract_finite_list(intbitset self, int up_to=-1): # <<<<<<<<<<<<<< @@ -10624,18 +10659,18 @@ static PyObject *__pyx_f_9intbitset_9intbitset_extract_finite_list(struct __pyx_ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extract_finite_list); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extract_finite_list); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_93extract_finite_list)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_up_to); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_up_to); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; @@ -10646,7 +10681,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_extract_finite_list(struct __pyx_ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":753 + /* "intbitset.pyx":755 * cdef int true_up_to * cdef int last * if self.sanity_checks and up_to > maxelem: # <<<<<<<<<<<<<< @@ -10661,44 +10696,44 @@ static PyObject *__pyx_f_9intbitset_9intbitset_extract_finite_list(struct __pyx_ } if (__pyx_t_5) { - /* "intbitset.pyx":754 + /* "intbitset.pyx":756 * cdef int last * if self.sanity_checks and up_to > maxelem: * raise OverflowError("up_to must be <= %s" % maxelem) # <<<<<<<<<<<<<< * ret = [] * true_up_to = max(up_to, (intBitSetGetSize(self.bitset)) * wordbitsize) */ - __pyx_t_1 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 754; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyInt_From_int(maxelem); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_up_to_must_be_s, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 754; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_up_to_must_be_s, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 754; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 754; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 754; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":755 + /* "intbitset.pyx":757 * if self.sanity_checks and up_to > maxelem: * raise OverflowError("up_to must be <= %s" % maxelem) * ret = [] # <<<<<<<<<<<<<< * true_up_to = max(up_to, (intBitSetGetSize(self.bitset)) * wordbitsize) * last = -1 */ - __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 755; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 757; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_v_ret = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; - /* "intbitset.pyx":756 + /* "intbitset.pyx":758 * raise OverflowError("up_to must be <= %s" % maxelem) * ret = [] * true_up_to = max(up_to, (intBitSetGetSize(self.bitset)) * wordbitsize) # <<<<<<<<<<<<<< @@ -10714,7 +10749,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_extract_finite_list(struct __pyx_ } __pyx_v_true_up_to = __pyx_t_8; - /* "intbitset.pyx":757 + /* "intbitset.pyx":759 * ret = [] * true_up_to = max(up_to, (intBitSetGetSize(self.bitset)) * wordbitsize) * last = -1 # <<<<<<<<<<<<<< @@ -10723,7 +10758,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_extract_finite_list(struct __pyx_ */ __pyx_v_last = -1; - /* "intbitset.pyx":758 + /* "intbitset.pyx":760 * true_up_to = max(up_to, (intBitSetGetSize(self.bitset)) * wordbitsize) * last = -1 * while last < true_up_to: # <<<<<<<<<<<<<< @@ -10734,7 +10769,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_extract_finite_list(struct __pyx_ __pyx_t_5 = ((__pyx_v_last < __pyx_v_true_up_to) != 0); if (!__pyx_t_5) break; - /* "intbitset.pyx":759 + /* "intbitset.pyx":761 * last = -1 * while last < true_up_to: * last = intBitSetGetNext(self.bitset, last) # <<<<<<<<<<<<<< @@ -10743,7 +10778,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_extract_finite_list(struct __pyx_ */ __pyx_v_last = intBitSetGetNext(__pyx_v_self->bitset, __pyx_v_last); - /* "intbitset.pyx":760 + /* "intbitset.pyx":762 * while last < true_up_to: * last = intBitSetGetNext(self.bitset, last) * if last == -2: # <<<<<<<<<<<<<< @@ -10753,7 +10788,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_extract_finite_list(struct __pyx_ __pyx_t_5 = ((__pyx_v_last == -2) != 0); if (__pyx_t_5) { - /* "intbitset.pyx":761 + /* "intbitset.pyx":763 * last = intBitSetGetNext(self.bitset, last) * if last == -2: * break # <<<<<<<<<<<<<< @@ -10763,21 +10798,21 @@ static PyObject *__pyx_f_9intbitset_9intbitset_extract_finite_list(struct __pyx_ goto __pyx_L5_break; } - /* "intbitset.pyx":762 + /* "intbitset.pyx":764 * if last == -2: * break * ret.append(last) # <<<<<<<<<<<<<< * return ret * */ - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_last); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_last); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_ret, __pyx_t_2); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_ret, __pyx_t_2); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_L5_break:; - /* "intbitset.pyx":763 + /* "intbitset.pyx":765 * break * ret.append(last) * return ret # <<<<<<<<<<<<<< @@ -10789,7 +10824,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_extract_finite_list(struct __pyx_ __pyx_r = __pyx_v_ret; goto __pyx_L0; - /* "intbitset.pyx":745 + /* "intbitset.pyx":747 * return self.bitset.trailing_bits != 0 * * cpdef extract_finite_list(intbitset self, int up_to=-1): # <<<<<<<<<<<<<< @@ -10842,7 +10877,7 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_93extract_finite_list(PyObject * } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "extract_finite_list") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "extract_finite_list") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -10852,14 +10887,14 @@ static PyObject *__pyx_pw_9intbitset_9intbitset_93extract_finite_list(PyObject * } } if (values[0]) { - __pyx_v_up_to = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_up_to == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_up_to = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_up_to == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_up_to = ((int)-1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("extract_finite_list", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("extract_finite_list", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("intbitset.intbitset.extract_finite_list", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -10884,7 +10919,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_92extract_finite_list(struct __p __Pyx_XDECREF(__pyx_r); __pyx_t_2.__pyx_n = 1; __pyx_t_2.up_to = __pyx_v_up_to; - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->extract_finite_list(__pyx_v_self, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->extract_finite_list(__pyx_v_self, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -10901,7 +10936,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_92extract_finite_list(struct __p return __pyx_r; } -/* "intbitset.pyx":765 +/* "intbitset.pyx":767 * return ret * * cpdef get_wordbitsize(intbitset self): # <<<<<<<<<<<<<< @@ -10923,11 +10958,11 @@ static PyObject *__pyx_f_9intbitset_9intbitset_get_wordbitsize(CYTHON_UNUSED str if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_wordbitsize); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_wordbitsize); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_95get_wordbitsize)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -10937,7 +10972,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_get_wordbitsize(CYTHON_UNUSED str __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":766 + /* "intbitset.pyx":768 * * cpdef get_wordbitsize(intbitset self): * return wordbitsize # <<<<<<<<<<<<<< @@ -10945,13 +10980,13 @@ static PyObject *__pyx_f_9intbitset_9intbitset_get_wordbitsize(CYTHON_UNUSED str * cpdef get_wordbytsize(intbitset self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_int(wordbitsize); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyInt_From_int(wordbitsize); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "intbitset.pyx":765 + /* "intbitset.pyx":767 * return ret * * cpdef get_wordbitsize(intbitset self): # <<<<<<<<<<<<<< @@ -10993,7 +11028,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_94get_wordbitsize(struct __pyx_o int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_wordbitsize", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->get_wordbitsize(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->get_wordbitsize(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -11010,7 +11045,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_94get_wordbitsize(struct __pyx_o return __pyx_r; } -/* "intbitset.pyx":768 +/* "intbitset.pyx":770 * return wordbitsize * * cpdef get_wordbytsize(intbitset self): # <<<<<<<<<<<<<< @@ -11032,11 +11067,11 @@ static PyObject *__pyx_f_9intbitset_9intbitset_get_wordbytsize(CYTHON_UNUSED str if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_wordbytsize); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_wordbytsize); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_97get_wordbytsize)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -11046,7 +11081,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_get_wordbytsize(CYTHON_UNUSED str __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":769 + /* "intbitset.pyx":771 * * cpdef get_wordbytsize(intbitset self): * return wordbytesize # <<<<<<<<<<<<<< @@ -11054,13 +11089,13 @@ static PyObject *__pyx_f_9intbitset_9intbitset_get_wordbytsize(CYTHON_UNUSED str * cpdef tolist(intbitset self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_int(wordbytesize); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyInt_From_int(wordbytesize); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "intbitset.pyx":768 + /* "intbitset.pyx":770 * return wordbitsize * * cpdef get_wordbytsize(intbitset self): # <<<<<<<<<<<<<< @@ -11102,7 +11137,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_96get_wordbytsize(struct __pyx_o int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_wordbytsize", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->get_wordbytsize(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->get_wordbytsize(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -11119,7 +11154,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_96get_wordbytsize(struct __pyx_o return __pyx_r; } -/* "intbitset.pyx":771 +/* "intbitset.pyx":773 * return wordbytesize * * cpdef tolist(intbitset self): # <<<<<<<<<<<<<< @@ -11142,11 +11177,11 @@ static PyObject *__pyx_f_9intbitset_9intbitset_tolist(struct __pyx_obj_9intbitse if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) { - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_tolist); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_tolist); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 773; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_9intbitset_9intbitset_99tolist)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 773; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -11156,7 +11191,7 @@ static PyObject *__pyx_f_9intbitset_9intbitset_tolist(struct __pyx_obj_9intbitse __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "intbitset.pyx":775 + /* "intbitset.pyx":777 * intbitset. * """ * if self.bitset.trailing_bits: # <<<<<<<<<<<<<< @@ -11166,21 +11201,21 @@ static PyObject *__pyx_f_9intbitset_9intbitset_tolist(struct __pyx_obj_9intbitse __pyx_t_3 = (__pyx_v_self->bitset->trailing_bits != 0); if (__pyx_t_3) { - /* "intbitset.pyx":776 + /* "intbitset.pyx":778 * """ * if self.bitset.trailing_bits: * raise OverflowError("It's impossible to retrieve a list of an infinite set") # <<<<<<<<<<<<<< * return self.extract_finite_list() * */ - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_OverflowError, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":777 + /* "intbitset.pyx":779 * if self.bitset.trailing_bits: * raise OverflowError("It's impossible to retrieve a list of an infinite set") * return self.extract_finite_list() # <<<<<<<<<<<<<< @@ -11188,13 +11223,13 @@ static PyObject *__pyx_f_9intbitset_9intbitset_tolist(struct __pyx_obj_9intbitse * cdef object __weakref__ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->extract_finite_list(__pyx_v_self, 0, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 777; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->extract_finite_list(__pyx_v_self, 0, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 779; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "intbitset.pyx":771 + /* "intbitset.pyx":773 * return wordbytesize * * cpdef tolist(intbitset self): # <<<<<<<<<<<<<< @@ -11237,7 +11272,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_98tolist(struct __pyx_obj_9intbi int __pyx_clineno = 0; __Pyx_RefNannySetupContext("tolist", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->tolist(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_9intbitset_intbitset *)__pyx_v_self->__pyx_vtab)->tolist(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 773; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -11254,7 +11289,7 @@ static PyObject *__pyx_pf_9intbitset_9intbitset_98tolist(struct __pyx_obj_9intbi return __pyx_r; } -/* "intbitset.pyx":786 +/* "intbitset.pyx":788 * cdef bint sanity_checks * * def __cinit__(intbitset_iterator self, intbitset bitset not None): # <<<<<<<<<<<<<< @@ -11290,7 +11325,7 @@ static int __pyx_pw_9intbitset_18intbitset_iterator_1__cinit__(PyObject *__pyx_v else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 788; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; @@ -11301,13 +11336,13 @@ static int __pyx_pw_9intbitset_18intbitset_iterator_1__cinit__(PyObject *__pyx_v } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 788; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("intbitset.intbitset_iterator.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bitset), __pyx_ptype_9intbitset_intbitset, 0, "bitset", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bitset), __pyx_ptype_9intbitset_intbitset, 0, "bitset", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 788; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_9intbitset_18intbitset_iterator___cinit__(((struct __pyx_obj_9intbitset_intbitset_iterator *)__pyx_v_self), __pyx_v_bitset); /* function exit code */ @@ -11329,7 +11364,7 @@ static int __pyx_pf_9intbitset_18intbitset_iterator___cinit__(struct __pyx_obj_9 int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__cinit__", 0); - /* "intbitset.pyx":788 + /* "intbitset.pyx":790 * def __cinit__(intbitset_iterator self, intbitset bitset not None): * #print >> sys.stderr, "intbitset_iterator.__cinit__ is called" * self.last = -1 # <<<<<<<<<<<<<< @@ -11338,7 +11373,7 @@ static int __pyx_pf_9intbitset_18intbitset_iterator___cinit__(struct __pyx_obj_9 */ __pyx_v_self->last = -1; - /* "intbitset.pyx":791 + /* "intbitset.pyx":793 * ## A copy should be performed, in case the original bitset disappears * ## as in "for x in intbitset([1,2,3])"! * self.bitset = intBitSetClone(bitset.bitset) # <<<<<<<<<<<<<< @@ -11347,20 +11382,20 @@ static int __pyx_pf_9intbitset_18intbitset_iterator___cinit__(struct __pyx_obj_9 */ __pyx_v_self->bitset = intBitSetClone(__pyx_v_bitset->bitset); - /* "intbitset.pyx":792 + /* "intbitset.pyx":794 * ## as in "for x in intbitset([1,2,3])"! * self.bitset = intBitSetClone(bitset.bitset) * self.sanity_checks = CFG_INTBITSET_ENABLE_SANITY_CHECKS # <<<<<<<<<<<<<< * * def __dealloc__(intbitset_iterator self): */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_CFG_INTBITSET_ENABLE_SANITY_CHEC); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_CFG_INTBITSET_ENABLE_SANITY_CHEC); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_self->sanity_checks = __pyx_t_2; - /* "intbitset.pyx":786 + /* "intbitset.pyx":788 * cdef bint sanity_checks * * def __cinit__(intbitset_iterator self, intbitset bitset not None): # <<<<<<<<<<<<<< @@ -11380,7 +11415,7 @@ static int __pyx_pf_9intbitset_18intbitset_iterator___cinit__(struct __pyx_obj_9 return __pyx_r; } -/* "intbitset.pyx":794 +/* "intbitset.pyx":796 * self.sanity_checks = CFG_INTBITSET_ENABLE_SANITY_CHECKS * * def __dealloc__(intbitset_iterator self): # <<<<<<<<<<<<<< @@ -11403,7 +11438,7 @@ static void __pyx_pf_9intbitset_18intbitset_iterator_2__dealloc__(struct __pyx_o __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__", 0); - /* "intbitset.pyx":796 + /* "intbitset.pyx":798 * def __dealloc__(intbitset_iterator self): * #print >> sys.stderr, "intbitset_iterator.__dealloc__ is called" * intBitSetDestroy(self.bitset) # <<<<<<<<<<<<<< @@ -11412,7 +11447,7 @@ static void __pyx_pf_9intbitset_18intbitset_iterator_2__dealloc__(struct __pyx_o */ intBitSetDestroy(__pyx_v_self->bitset); - /* "intbitset.pyx":794 + /* "intbitset.pyx":796 * self.sanity_checks = CFG_INTBITSET_ENABLE_SANITY_CHECKS * * def __dealloc__(intbitset_iterator self): # <<<<<<<<<<<<<< @@ -11424,7 +11459,7 @@ static void __pyx_pf_9intbitset_18intbitset_iterator_2__dealloc__(struct __pyx_o __Pyx_RefNannyFinishContext(); } -/* "intbitset.pyx":798 +/* "intbitset.pyx":800 * intBitSetDestroy(self.bitset) * * def __next__(intbitset_iterator self): # <<<<<<<<<<<<<< @@ -11458,7 +11493,7 @@ static PyObject *__pyx_pf_9intbitset_18intbitset_iterator_4__next__(struct __pyx int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__next__", 0); - /* "intbitset.pyx":799 + /* "intbitset.pyx":801 * * def __next__(intbitset_iterator self): * if self.last == -2: # <<<<<<<<<<<<<< @@ -11468,21 +11503,21 @@ static PyObject *__pyx_pf_9intbitset_18intbitset_iterator_4__next__(struct __pyx __pyx_t_1 = ((__pyx_v_self->last == -2) != 0); if (__pyx_t_1) { - /* "intbitset.pyx":800 + /* "intbitset.pyx":802 * def __next__(intbitset_iterator self): * if self.last == -2: * raise StopIteration() # <<<<<<<<<<<<<< * self.last = intBitSetGetNext(self.bitset, self.last) * if self.sanity_checks and (self.bitset.allocated < self.bitset.size): */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_StopIteration, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_StopIteration, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":801 + /* "intbitset.pyx":803 * if self.last == -2: * raise StopIteration() * self.last = intBitSetGetNext(self.bitset, self.last) # <<<<<<<<<<<<<< @@ -11491,7 +11526,7 @@ static PyObject *__pyx_pf_9intbitset_18intbitset_iterator_4__next__(struct __pyx */ __pyx_v_self->last = intBitSetGetNext(__pyx_v_self->bitset, __pyx_v_self->last); - /* "intbitset.pyx":802 + /* "intbitset.pyx":804 * raise StopIteration() * self.last = intBitSetGetNext(self.bitset, self.last) * if self.sanity_checks and (self.bitset.allocated < self.bitset.size): # <<<<<<<<<<<<<< @@ -11506,18 +11541,18 @@ static PyObject *__pyx_pf_9intbitset_18intbitset_iterator_4__next__(struct __pyx } if (__pyx_t_3) { - /* "intbitset.pyx":803 + /* "intbitset.pyx":805 * self.last = intBitSetGetNext(self.bitset, self.last) * if self.sanity_checks and (self.bitset.allocated < self.bitset.size): * raise MemoryError("intbitset corrupted: allocated: %s, size: %s" % (self.bitset.allocated, self.bitset.size)) # <<<<<<<<<<<<<< * if self.last < 0: * self.last = -2 */ - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->bitset->allocated); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->bitset->allocated); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_self->bitset->size); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_self->bitset->size); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); @@ -11525,23 +11560,23 @@ static PyObject *__pyx_pf_9intbitset_18intbitset_iterator_4__next__(struct __pyx __Pyx_GIVEREF(__pyx_t_4); __pyx_t_2 = 0; __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_intbitset_corrupted_allocated_s, __pyx_t_5); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_intbitset_corrupted_allocated_s, __pyx_t_5); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":804 + /* "intbitset.pyx":806 * if self.sanity_checks and (self.bitset.allocated < self.bitset.size): * raise MemoryError("intbitset corrupted: allocated: %s, size: %s" % (self.bitset.allocated, self.bitset.size)) * if self.last < 0: # <<<<<<<<<<<<<< @@ -11551,7 +11586,7 @@ static PyObject *__pyx_pf_9intbitset_18intbitset_iterator_4__next__(struct __pyx __pyx_t_3 = ((__pyx_v_self->last < 0) != 0); if (__pyx_t_3) { - /* "intbitset.pyx":805 + /* "intbitset.pyx":807 * raise MemoryError("intbitset corrupted: allocated: %s, size: %s" % (self.bitset.allocated, self.bitset.size)) * if self.last < 0: * self.last = -2 # <<<<<<<<<<<<<< @@ -11560,21 +11595,21 @@ static PyObject *__pyx_pf_9intbitset_18intbitset_iterator_4__next__(struct __pyx */ __pyx_v_self->last = -2; - /* "intbitset.pyx":806 + /* "intbitset.pyx":808 * if self.last < 0: * self.last = -2 * raise StopIteration() # <<<<<<<<<<<<<< * return self.last * */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_StopIteration, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_StopIteration, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 808; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 808; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "intbitset.pyx":807 + /* "intbitset.pyx":809 * self.last = -2 * raise StopIteration() * return self.last # <<<<<<<<<<<<<< @@ -11582,13 +11617,13 @@ static PyObject *__pyx_pf_9intbitset_18intbitset_iterator_4__next__(struct __pyx * def __iter__(intbitset_iterator self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_self->last); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_self->last); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 809; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "intbitset.pyx":798 + /* "intbitset.pyx":800 * intBitSetDestroy(self.bitset) * * def __next__(intbitset_iterator self): # <<<<<<<<<<<<<< @@ -11609,7 +11644,7 @@ static PyObject *__pyx_pf_9intbitset_18intbitset_iterator_4__next__(struct __pyx return __pyx_r; } -/* "intbitset.pyx":809 +/* "intbitset.pyx":811 * return self.last * * def __iter__(intbitset_iterator self): # <<<<<<<<<<<<<< @@ -11635,7 +11670,7 @@ static PyObject *__pyx_pf_9intbitset_18intbitset_iterator_6__iter__(struct __pyx __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__iter__", 0); - /* "intbitset.pyx":810 + /* "intbitset.pyx":812 * * def __iter__(intbitset_iterator self): * return self # <<<<<<<<<<<<<< @@ -11647,7 +11682,7 @@ static PyObject *__pyx_pf_9intbitset_18intbitset_iterator_6__iter__(struct __pyx __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; - /* "intbitset.pyx":809 + /* "intbitset.pyx":811 * return self.last * * def __iter__(intbitset_iterator self): # <<<<<<<<<<<<<< @@ -12014,6 +12049,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_KeyError, __pyx_k_KeyError, sizeof(__pyx_k_KeyError), 0, 0, 1, 1}, {&__pyx_n_s_MemoryError, __pyx_k_MemoryError, sizeof(__pyx_k_MemoryError), 0, 0, 1, 1}, {&__pyx_kp_s_Negative_numbers_not_allowed, __pyx_k_Negative_numbers_not_allowed, sizeof(__pyx_k_Negative_numbers_not_allowed), 0, 0, 1, 0}, + {&__pyx_n_s_NotImplemented, __pyx_k_NotImplemented, sizeof(__pyx_k_NotImplemented), 0, 0, 1, 1}, {&__pyx_n_s_OverflowError, __pyx_k_OverflowError, sizeof(__pyx_k_OverflowError), 0, 0, 1, 1}, {&__pyx_n_s_PY3, __pyx_k_PY3, sizeof(__pyx_k_PY3), 0, 0, 1, 1}, {&__pyx_n_s_StopIteration, __pyx_k_StopIteration, sizeof(__pyx_k_StopIteration), 0, 0, 1, 1}, @@ -12114,12 +12150,13 @@ static int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_max = __Pyx_GetBuiltinName(__pyx_n_s_max); if (!__pyx_builtin_max) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_builtin_OverflowError = __Pyx_GetBuiltinName(__pyx_n_s_OverflowError); if (!__pyx_builtin_OverflowError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 186; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_KeyError = __Pyx_GetBuiltinName(__pyx_n_s_KeyError); if (!__pyx_builtin_KeyError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_AttributeError = __Pyx_GetBuiltinName(__pyx_n_s_AttributeError); if (!__pyx_builtin_AttributeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 731; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_StopIteration = __Pyx_GetBuiltinName(__pyx_n_s_StopIteration); if (!__pyx_builtin_StopIteration) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_builtin_NotImplemented = __Pyx_GetBuiltinName(__pyx_n_s_NotImplemented); if (!__pyx_builtin_NotImplemented) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 454; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_builtin_KeyError = __Pyx_GetBuiltinName(__pyx_n_s_KeyError); if (!__pyx_builtin_KeyError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_builtin_AttributeError = __Pyx_GetBuiltinName(__pyx_n_s_AttributeError); if (!__pyx_builtin_AttributeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_builtin_StopIteration = __Pyx_GetBuiltinName(__pyx_n_s_StopIteration); if (!__pyx_builtin_StopIteration) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;} return 0; __pyx_L1_error:; return -1; @@ -12211,262 +12248,262 @@ static int __Pyx_InitCachedConstants(void) { * def __cmp__(self not None, intbitset rhs not None): * raise TypeError("cannot compare intbitset using cmp()") # <<<<<<<<<<<<<< * - * def __richcmp__(self not None, intbitset rhs not None, int op): + * def __richcmp__(self not None, rhs, int op): */ __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_s_cannot_compare_intbitset_using_c); if (unlikely(!__pyx_tuple__9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__9); __Pyx_GIVEREF(__pyx_tuple__9); - /* "intbitset.pyx":304 + /* "intbitset.pyx":306 * if self.sanity_checks: * if rhs < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif rhs > maxelem: * raise OverflowError("rhs must be <= %s" % maxelem) */ - __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__10); __Pyx_GIVEREF(__pyx_tuple__10); - /* "intbitset.pyx":314 + /* "intbitset.pyx":316 * for elem in rhs: * if elem < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) */ - __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__11); __Pyx_GIVEREF(__pyx_tuple__11); - /* "intbitset.pyx":321 + /* "intbitset.pyx":323 * for elem in rhs: * if elem < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) */ - __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__12); __Pyx_GIVEREF(__pyx_tuple__12); - /* "intbitset.pyx":333 + /* "intbitset.pyx":335 * if self.sanity_checks: * if rhs < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif rhs > maxelem: * raise OverflowError("rhs must be <= %s" % maxelem) */ - __pyx_tuple__13 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__13 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__13); __Pyx_GIVEREF(__pyx_tuple__13); - /* "intbitset.pyx":343 + /* "intbitset.pyx":345 * for elem in rhs: * if elem < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) */ - __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__14); __Pyx_GIVEREF(__pyx_tuple__14); - /* "intbitset.pyx":358 + /* "intbitset.pyx":360 * if self.sanity_checks: * if elem < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif elem > maxelem: * raise OverflowError("Element must be <= %s" % maxelem) */ - __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__15)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__15)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__15); __Pyx_GIVEREF(__pyx_tuple__15); - /* "intbitset.pyx":424 + /* "intbitset.pyx":426 * return "intbitset([...], trailing_bits=True)" * elif tot > 10: * begin_list = self[0:5] # <<<<<<<<<<<<<< * end_list = self[tot - 5:tot] * ret = "intbitset([" */ - __pyx_slice__16 = PySlice_New(__pyx_int_0, __pyx_int_5, Py_None); if (unlikely(!__pyx_slice__16)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_slice__16 = PySlice_New(__pyx_int_0, __pyx_int_5, Py_None); if (unlikely(!__pyx_slice__16)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 426; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_slice__16); __Pyx_GIVEREF(__pyx_slice__16); - /* "intbitset.pyx":432 + /* "intbitset.pyx":434 * for n in end_list: * ret += '%i, ' % n * ret = ret[:-2] # <<<<<<<<<<<<<< * ret += '])' * return ret */ - __pyx_slice__18 = PySlice_New(Py_None, __pyx_int_neg_2, Py_None); if (unlikely(!__pyx_slice__18)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_slice__18 = PySlice_New(Py_None, __pyx_int_neg_2, Py_None); if (unlikely(!__pyx_slice__18)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_slice__18); __Pyx_GIVEREF(__pyx_slice__18); - /* "intbitset.pyx":447 + /* "intbitset.pyx":449 * ## This is a slice object! * if self.bitset.trailing_bits and (key.start < 0 or key.stop < 0): * raise IndexError("negative indexes are not allowed on infinite intbitset") # <<<<<<<<<<<<<< * retset = intbitset() * start, end, step = key.indices(intBitSetGetTot(self.bitset)) */ - __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_s_negative_indexes_are_not_allowed); if (unlikely(!__pyx_tuple__20)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_s_negative_indexes_are_not_allowed); if (unlikely(!__pyx_tuple__20)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__20); __Pyx_GIVEREF(__pyx_tuple__20); - /* "intbitset.pyx":451 + /* "intbitset.pyx":453 * start, end, step = key.indices(intBitSetGetTot(self.bitset)) * if step < 0: * raise ValueError("negative steps are not yet supported") # <<<<<<<<<<<<<< * for i in range(start): * elem = intBitSetGetNext(self.bitset, elem) */ - __pyx_tuple__21 = PyTuple_Pack(1, __pyx_kp_s_negative_steps_are_not_yet_suppo); if (unlikely(!__pyx_tuple__21)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__21 = PyTuple_Pack(1, __pyx_kp_s_negative_steps_are_not_yet_suppo); if (unlikely(!__pyx_tuple__21)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__21); __Pyx_GIVEREF(__pyx_tuple__21); - /* "intbitset.pyx":467 + /* "intbitset.pyx":469 * if end < 0: * if self.bitset.trailing_bits: * raise IndexError("negative indexes are not allowed on infinite intbitset") # <<<<<<<<<<<<<< * end += intBitSetGetTot(self.bitset) * if end < 0: */ - __pyx_tuple__22 = PyTuple_Pack(1, __pyx_kp_s_negative_indexes_are_not_allowed); if (unlikely(!__pyx_tuple__22)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__22 = PyTuple_Pack(1, __pyx_kp_s_negative_indexes_are_not_allowed); if (unlikely(!__pyx_tuple__22)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__22); __Pyx_GIVEREF(__pyx_tuple__22); - /* "intbitset.pyx":470 + /* "intbitset.pyx":472 * end += intBitSetGetTot(self.bitset) * if end < 0: * raise IndexError("intbitset index out of range") # <<<<<<<<<<<<<< * if end >= intBitSetGetTot(self.bitset): * raise IndexError("intbitset index out of range") */ - __pyx_tuple__23 = PyTuple_Pack(1, __pyx_kp_s_intbitset_index_out_of_range); if (unlikely(!__pyx_tuple__23)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__23 = PyTuple_Pack(1, __pyx_kp_s_intbitset_index_out_of_range); if (unlikely(!__pyx_tuple__23)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__23); __Pyx_GIVEREF(__pyx_tuple__23); - /* "intbitset.pyx":472 + /* "intbitset.pyx":474 * raise IndexError("intbitset index out of range") * if end >= intBitSetGetTot(self.bitset): * raise IndexError("intbitset index out of range") # <<<<<<<<<<<<<< * for i in range(end + 1): * elem = intBitSetGetNext(self.bitset, elem) */ - __pyx_tuple__24 = PyTuple_Pack(1, __pyx_kp_s_intbitset_index_out_of_range); if (unlikely(!__pyx_tuple__24)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__24 = PyTuple_Pack(1, __pyx_kp_s_intbitset_index_out_of_range); if (unlikely(!__pyx_tuple__24)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__24); __Pyx_GIVEREF(__pyx_tuple__24); - /* "intbitset.pyx":536 + /* "intbitset.pyx":538 * def __iter__(self not None): * if self.bitset.trailing_bits: * raise OverflowError("It's impossible to iterate over an infinite set.") # <<<<<<<<<<<<<< * return intbitset_iterator(self) * */ - __pyx_tuple__26 = PyTuple_Pack(1, __pyx_kp_s_It_s_impossible_to_iterate_over); if (unlikely(!__pyx_tuple__26)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__26 = PyTuple_Pack(1, __pyx_kp_s_It_s_impossible_to_iterate_over); if (unlikely(!__pyx_tuple__26)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__26); __Pyx_GIVEREF(__pyx_tuple__26); - /* "intbitset.pyx":545 + /* "intbitset.pyx":547 * if self.sanity_checks: * if elem < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif elem > maxelem: * raise OverflowError("Element must be <= %s" % maxelem) */ - __pyx_tuple__27 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__27)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__27 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__27)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__27); __Pyx_GIVEREF(__pyx_tuple__27); - /* "intbitset.pyx":559 + /* "intbitset.pyx":561 * if self.sanity_checks: * if elem < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif elem > maxelem: * raise OverflowError("Element must be <= %s" % maxelem) */ - __pyx_tuple__28 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__28)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__28 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__28)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__28); __Pyx_GIVEREF(__pyx_tuple__28); - /* "intbitset.pyx":607 + /* "intbitset.pyx":609 * intBitSetResetFromBuffer(( self).bitset, buf, size) * except: * raise ValueError("strdump is corrupted") # <<<<<<<<<<<<<< * return self * */ - __pyx_tuple__29 = PyTuple_Pack(1, __pyx_kp_s_strdump_is_corrupted); if (unlikely(!__pyx_tuple__29)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__29 = PyTuple_Pack(1, __pyx_kp_s_strdump_is_corrupted); if (unlikely(!__pyx_tuple__29)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__29); __Pyx_GIVEREF(__pyx_tuple__29); - /* "intbitset.pyx":623 + /* "intbitset.pyx":625 * ret = intBitSetGetLast(self.bitset) * if ret < 0: * raise KeyError("pop from an empty or infinite intbitset") # <<<<<<<<<<<<<< * intBitSetDelElem(self.bitset, ret) * return ret */ - __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_s_pop_from_an_empty_or_infinite_in); if (unlikely(!__pyx_tuple__30)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_s_pop_from_an_empty_or_infinite_in); if (unlikely(!__pyx_tuple__30)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__30); __Pyx_GIVEREF(__pyx_tuple__30); - /* "intbitset.pyx":633 + /* "intbitset.pyx":635 * if self.sanity_checks: * if elem < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif elem > maxelem: * raise OverflowError("Elements must be <= %s" % maxelem) */ - __pyx_tuple__31 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__31)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__31 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__31)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__31); __Pyx_GIVEREF(__pyx_tuple__31); - /* "intbitset.pyx":648 + /* "intbitset.pyx":650 * cdef int last * if ( self).bitset.trailing_bits: * raise OverflowError("It's impossible to print an infinite set.") # <<<<<<<<<<<<<< * last = 0 * ret = [] */ - __pyx_tuple__32 = PyTuple_Pack(1, __pyx_kp_s_It_s_impossible_to_print_an_infi); if (unlikely(!__pyx_tuple__32)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__32 = PyTuple_Pack(1, __pyx_kp_s_It_s_impossible_to_print_an_infi); if (unlikely(!__pyx_tuple__32)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__32); __Pyx_GIVEREF(__pyx_tuple__32); - /* "intbitset.pyx":718 + /* "intbitset.pyx":720 * for value, sign in rhs.iteritems(): * if value < 0: * raise ValueError("Negative numbers, not allowed") # <<<<<<<<<<<<<< * elif value > maxelem: * raise OverflowError("Elements must <= %s" % maxelem) */ - __pyx_tuple__34 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__34 = PyTuple_Pack(1, __pyx_kp_s_Negative_numbers_not_allowed); if (unlikely(!__pyx_tuple__34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__34); __Pyx_GIVEREF(__pyx_tuple__34); - /* "intbitset.pyx":732 + /* "intbitset.pyx":734 * intBitSetAddElem(self.bitset, value) * except AttributeError: * raise TypeError("rhs should be a valid dictionary with integers keys and integer values") # <<<<<<<<<<<<<< * * cpdef get_size(intbitset self): */ - __pyx_tuple__35 = PyTuple_Pack(1, __pyx_kp_s_rhs_should_be_a_valid_dictionary); if (unlikely(!__pyx_tuple__35)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 732; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__35 = PyTuple_Pack(1, __pyx_kp_s_rhs_should_be_a_valid_dictionary); if (unlikely(!__pyx_tuple__35)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 734; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__35); __Pyx_GIVEREF(__pyx_tuple__35); - /* "intbitset.pyx":776 + /* "intbitset.pyx":778 * """ * if self.bitset.trailing_bits: * raise OverflowError("It's impossible to retrieve a list of an infinite set") # <<<<<<<<<<<<<< * return self.extract_finite_list() * */ - __pyx_tuple__36 = PyTuple_Pack(1, __pyx_kp_s_It_s_impossible_to_retrieve_a_li); if (unlikely(!__pyx_tuple__36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_tuple__36 = PyTuple_Pack(1, __pyx_kp_s_It_s_impossible_to_retrieve_a_li); if (unlikely(!__pyx_tuple__36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__36); __Pyx_GIVEREF(__pyx_tuple__36); __Pyx_RefNannyFinishContext(); @@ -12676,9 +12713,9 @@ PyMODINIT_FUNC PyInit_intbitset(void) if (__Pyx_SetAttrString(__pyx_m, "intbitset", (PyObject *)&__pyx_type_9intbitset_intbitset) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_type_9intbitset_intbitset.tp_weaklistoffset == 0) __pyx_type_9intbitset_intbitset.tp_weaklistoffset = offsetof(struct __pyx_obj_9intbitset_intbitset, __weakref__); __pyx_ptype_9intbitset_intbitset = &__pyx_type_9intbitset_intbitset; - if (PyType_Ready(&__pyx_type_9intbitset_intbitset_iterator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 781; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyType_Ready(&__pyx_type_9intbitset_intbitset_iterator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_type_9intbitset_intbitset_iterator.tp_print = 0; - if (__Pyx_SetAttrString(__pyx_m, "intbitset_iterator", (PyObject *)&__pyx_type_9intbitset_intbitset_iterator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 781; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (__Pyx_SetAttrString(__pyx_m, "intbitset_iterator", (PyObject *)&__pyx_type_9intbitset_intbitset_iterator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_type_9intbitset_intbitset_iterator.tp_weaklistoffset == 0) __pyx_type_9intbitset_intbitset_iterator.tp_weaklistoffset = offsetof(struct __pyx_obj_9intbitset_intbitset_iterator, __weakref__); __pyx_ptype_9intbitset_intbitset_iterator = &__pyx_type_9intbitset_intbitset_iterator; /*--- Type import code ---*/ @@ -12831,52 +12868,52 @@ PyMODINIT_FUNC PyInit_intbitset(void) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_k_ = __pyx_t_3; - /* "intbitset.pyx":531 + /* "intbitset.pyx":533 * return _, (self.fastdump(),) * * __safe_for_unpickling__ = True # <<<<<<<<<<<<<< * * # Iterator interface */ - if (PyDict_SetItem((PyObject *)__pyx_ptype_9intbitset_intbitset->tp_dict, __pyx_n_s_safe_for_unpickling, Py_True) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyDict_SetItem((PyObject *)__pyx_ptype_9intbitset_intbitset->tp_dict, __pyx_n_s_safe_for_unpickling, Py_True) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; __pyx_clineno = __LINE__; goto __pyx_L1_error;} PyType_Modified(__pyx_ptype_9intbitset_intbitset); - /* "intbitset.pyx":564 + /* "intbitset.pyx":566 * intBitSetDelElem(self.bitset, elem) * * symmetric_difference = __xor__ # <<<<<<<<<<<<<< * symmetric_difference_update = __ixor__ * */ - __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_9intbitset_intbitset, __pyx_n_s_xor); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_9intbitset_intbitset, __pyx_n_s_xor); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem((PyObject *)__pyx_ptype_9intbitset_intbitset->tp_dict, __pyx_n_s_symmetric_difference, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyDict_SetItem((PyObject *)__pyx_ptype_9intbitset_intbitset->tp_dict, __pyx_n_s_symmetric_difference, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_9intbitset_intbitset); - /* "intbitset.pyx":565 + /* "intbitset.pyx":567 * * symmetric_difference = __xor__ * symmetric_difference_update = __ixor__ # <<<<<<<<<<<<<< * * cpdef issubset(intbitset self, rhs): */ - __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_9intbitset_intbitset, __pyx_n_s_ixor); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_9intbitset_intbitset, __pyx_n_s_ixor); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem((PyObject *)__pyx_ptype_9intbitset_intbitset->tp_dict, __pyx_n_s_symmetric_difference_update, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyDict_SetItem((PyObject *)__pyx_ptype_9intbitset_intbitset->tp_dict, __pyx_n_s_symmetric_difference_update, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_9intbitset_intbitset); - /* "intbitset.pyx":663 + /* "intbitset.pyx":665 * intBitSetIUnion(self.bitset, iarg.bitset) * * union_update = update # <<<<<<<<<<<<<< * * def intersection_update(self not None, *args): */ - __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_9intbitset_intbitset, __pyx_n_s_update); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 663; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_9intbitset_intbitset, __pyx_n_s_update); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem((PyObject *)__pyx_ptype_9intbitset_intbitset->tp_dict, __pyx_n_s_union_update, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 663; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyDict_SetItem((PyObject *)__pyx_ptype_9intbitset_intbitset->tp_dict, __pyx_n_s_union_update, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_9intbitset_intbitset); diff --git a/src/intbitset.pyx b/src/intbitset.pyx index b705c95..47e09fd 100644 --- a/src/intbitset.pyx +++ b/src/intbitset.pyx @@ -268,9 +268,11 @@ cdef class intbitset: def __cmp__(self not None, intbitset rhs not None): raise TypeError("cannot compare intbitset using cmp()") - def __richcmp__(self not None, intbitset rhs not None, int op): + def __richcmp__(self not None, rhs, int op): cdef short unsigned int tmp - tmp = intBitSetCmp((self).bitset, rhs.bitset) + if not isinstance(self, intbitset) or not isinstance(rhs, intbitset): + return NotImplemented + tmp = intBitSetCmp((self).bitset, (rhs).bitset) if op == 0: # < return tmp == 1 if op == 1: # <= diff --git a/tests/test_intbitset.py b/tests/test_intbitset.py index 23cc4fc..d29af0a 100644 --- a/tests/test_intbitset.py +++ b/tests/test_intbitset.py @@ -181,6 +181,13 @@ def test_no_segmentation_fault(self): self.assertRaises(TypeError, set_fnc, (set([1,2,3]), self.intbitset([1,2,3]))) self.assertRaises(TypeError, intbitset_fnc, (None, self.intbitset([1,2,3]))) + def test_with_not_intbitset(self): + """intbitset - test behavior with not intbitset""" + return # Disable this test until the set interface is fully understood + for intbitset_fncdummy, dummy, lambda_cmp in self.cmp_list: + self.assertEqual(lambda_cmp(self.intbitset([1,2,3]), [2,3]), lambda_cmp(set([1,2,3]), [2,3])) + self.assertEqual(lambda_cmp(self.intbitset([1,2,3]), [1,2,3]), lambda_cmp(set([1,2,3]), [1,2,3])) + def test_set_intersection(self): """intbitset - set intersection, normal set""" self._helper_test_normal_set(self.fncs_list[0]) @@ -399,6 +406,8 @@ def test_set_repr(self): def test_set_cmp(self): """intbitset - (non infinite) set comparison""" for set1 in self.sets + [[]]: + for op in self.cmp_list: + self.assertEqual(op[0](self.intbitset(set1), [1,2,3]), op[1](set(set1), [1,2,3]), "Error in comparing %s [1,2,3] with comparing function %s" % (set1, op[0].__name__)) for set2 in self.sets + [[]]: for op in self.cmp_list: self.assertEqual(op[0](self.intbitset(set1), self.intbitset(set2)), op[1](set(set1), set(set2)), "Error in comparing %s %s with comparing function %s" % (set1, set2, op[0].__name__))