Message236496
> Still, I would like to argue that an atomic operation is important.
Yes, and that's why I wrote the whole PEP 446 :-) But we are *not* going to backport the PEP. New features and bug fixes requiring large code change are only done in the development branch, not on stable branches.
Fixing os.urandom() to have atomic operation creating the file descriptor non-inheritable is useless, because they are a *lot* of other functions which create inheritable file descriptors, and a few others which create non-inheritable file descriptor but are not atomic.
You don't have to search too far: Popen.pipe_cloexec() is not atomic...
Reminder: subprocess is not thread-safe => issue #19809 (doc issue).
See my "Bugs already fixed in Python 3" and "Bugs that won’t be fixed in Python 2 anymore" lists:
http://haypo-notes.readthedocs.org/python.html#python-3-is-better-than-python-2
--
I reopen the issue because the test is failing on Windows and OpenIndiana buildbots. |
|
Date |
User |
Action |
Args |
2015-02-24 13:54:23 | vstinner | set | recipients:
+ vstinner, rhettinger, pitrou, alex, python-dev, serhiy.storchaka, koobs, emaste, Pavel.Labath |
2015-02-24 13:54:23 | vstinner | set | messageid: <1424786063.14.0.120907865709.issue23458@psf.upfronthosting.co.za> |
2015-02-24 13:54:23 | vstinner | link | issue23458 messages |
2015-02-24 13:54:22 | vstinner | create | |
|