mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #5677: Explicitly forbid write operations on read-only file objects,
and read operations on write-only file objects. On Windows, the system C library would return a bogus result; on Solaris, it was possible to crash the interpreter. Patch by Stefan Krah.
This commit is contained in:
parent
007a618a38
commit
bb445a1f22
6 changed files with 77 additions and 1 deletions
|
@ -417,6 +417,7 @@ Greg Kochanski
|
|||
Damon Kohler
|
||||
Joseph Koshy
|
||||
Maksim Kozyarchuk
|
||||
Stefan Krah
|
||||
Bob Kras
|
||||
Holger Krekel
|
||||
Michael Kremer
|
||||
|
|
|
@ -12,6 +12,11 @@ What's New in Python 2.7 alpha 3?
|
|||
Core and Builtins
|
||||
-----------------
|
||||
|
||||
- Issue #5677: Explicitly forbid write operations on read-only file objects,
|
||||
and read operations on write-only file objects. On Windows, the system C
|
||||
library would return a bogus result; on Solaris, it was possible to crash
|
||||
the interpreter. Patch by Stefan Krah.
|
||||
|
||||
- Issue #7853: Normalize exceptions before they are passed to a context managers
|
||||
__exit__ method.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue