]> granicus.if.org Git - python/commit
Issue #27776: _PyRandom_Init() doesn't call PyErr_CheckSignals() anymore
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 16 Aug 2016 13:19:09 +0000 (15:19 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 16 Aug 2016 13:19:09 +0000 (15:19 +0200)
commitcecdd9634b8ca3f0b260681d75cc1fd00a350efd
tree281efa62b8f541c76a4747963edfc36fb99089fb
parent4bad3b622e119cea330e0c0a8a6dc26b98f17d53
Issue #27776: _PyRandom_Init() doesn't call PyErr_CheckSignals() anymore

Modify py_getrandom() to not call PyErr_CheckSignals() if raise is zero.
_PyRandom_Init() is called very early in the Python initialization, so it's
safer to not call PyErr_CheckSignals().
Python/random.c