STINNER Victor <vstin...@python.org> added the comment:
FYI this change broke librepo which calls PyLong_FromLong() without holding the GIL. In Python 3.8, "it works". In Python 3.9, it does crash: get_small_int() gets a NULL tstate and then dereference a NULL pointer. librepo bug: https://bugzilla.redhat.com/show_bug.cgi?id=1788918 IMHO it's a bug in librepo: the GIL must be held to use Python C API. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38858> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com