I would suggest to extend the if-clause ("if self._lock is not NULL") of the __dealloc__ method of the _ParserContext class with a check for config.ENABLE_THREADING. Same check is already done in __cinit__ method. At least with cython 0.17.4, gcc 4.4.6 & python 2.7.3 this solves the problem for me.
I would suggest to extend the if-clause ("if self._lock is not NULL") of the __dealloc__ method of the _ParserContext class with a check for config. ENABLE_ THREADING. Same check is already done in __cinit__ method. At least with cython 0.17.4, gcc 4.4.6 & python 2.7.3 this solves the problem for me.