[issue29188] Backport random.c from Python 3.5 to Python 2.7

2017-01-09 Thread STINNER Victor
STINNER Victor added the comment: > This is VERY far from our historical policy for backports. Python 2.7 is > supposed to be getting more stable over time (that is one of its chief > virtues). We don't want to risk the kind of mini-catastrophe that got > published in 3.6 (issue29085). I do

[issue29188] Backport random.c from Python 3.5 to Python 2.7

2017-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 13a39142c047 by Victor Stinner in branch '2.7': Don't use getentropy() on Linux https://hg.python.org/cpython/rev/13a39142c047 -- nosy: +python-dev ___ Python tracker

[issue29188] Backport random.c from Python 3.5 to Python 2.7

2017-01-07 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue29188] Backport random.c from Python 3.5 to Python 2.7

2017-01-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I would prefer to use the "same code" (or almost) on all maintained > versions of Python: 2.7, 3.5, 3.6 and 3.7. It should ease the > maintenance for bugfixes and enhancements. This is VERY far from our historical policy for backports. Python 2.7 is suppo

[issue29188] Backport random.c from Python 3.5 to Python 2.7

2017-01-06 Thread STINNER Victor
STINNER Victor added the comment: > I think it is far too late to be making these kind of changes to 2.7. I would prefer to use the "same code" (or almost) on all maintained versions of Python: 2.7, 3.5, 3.6 and 3.7. It should ease the maintenance for bugfixes and enhancements. It seems like

[issue29188] Backport random.c from Python 3.5 to Python 2.7

2017-01-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think it is far too late to be making these kind of changes to 2.7. -- nosy: +rhettinger ___ Python tracker ___ ___

[issue29188] Backport random.c from Python 3.5 to Python 2.7

2017-01-06 Thread STINNER Victor
New submission from STINNER Victor: Python 3.6 uses the new getrandom() function/syscall on Linux and Solaris to get random bytes with no file descriptor: it prevents EMFILE and ENFILE errors or surprises when opening a first file (and looking at its file descriptor). I propose to copy and ada