Stefan Krah <ste...@bytereef.org> added the comment:

I've briefly looked at the zip archive. Without going much into
the C++ module as a whole, this should not be done:


    gil_unlocker.UnlockGILAndSleep()
    self.val = decimal.Decimal(1) / decimal.Decimal(7)
    gil_unlocker.UnlockGILAndSleep()


If you want C++ threads with a released GIL, you should use libmpdec
directly and not the Python module.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39776>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to