Hi Vincent, On Sun, Dec 27, 2015 at 11:45 AM, Vincent Legoll <vincent.leg...@gmail.com> wrote: > So to stay on the safe side, you prefer to keep reopening every time ? > https://bitbucket.org/vincentlegoll/pypy/commits/branch/fix-urandom-closed
I'm not against a proper fix :-) The problem is that for the fix to be proper, it needs a bit more work than what you did. The problem is that the calls to os.fstat() in your code can each release the GIL; in CPython, the corresponding calls to fstat() are done without the GIL released, and I believe it is important. A bientôt, Armin. _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev