]> granicus.if.org Git - python/commit
Issue #23694: Enhance _Py_open(), it now raises exceptions
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Mar 2015 23:22:14 +0000 (00:22 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Mar 2015 23:22:14 +0000 (00:22 +0100)
commita555cfcb73cf677a99d29af6fa0bcfe4c35a2aeb
treefa88ce2ae8c7d2213dc3e80845405d0d8719308a
parent6562b29e13f4da98558636c43a1b242698c8f8d9
Issue #23694: Enhance _Py_open(), it now raises exceptions

* _Py_open() now raises exceptions on error. If open() fails, it raises an
  OSError with the filename.
* _Py_open() now releases the GIL while calling open()
* Add _Py_open_noraise() when _Py_open() cannot be used because the GIL is not
  held
Include/fileutils.h
Modules/_posixsubprocess.c
Modules/mmapmodule.c
Modules/ossaudiodev.c
Modules/posixmodule.c
Modules/selectmodule.c
Python/fileutils.c
Python/random.c