Issue #27066: Fixed SystemError if a custom opener (for open()) retur… · pythoncapi/cpython@118598a · GitHub
Skip to content

Commit 118598a

Browse files
committed
Issue python#27066: Fixed SystemError if a custom opener (for open()) returns a
negative number without setting an exception.
2 parents 24f3a18 + 480e285 commit 118598a

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

Lib/test/test_io.py

Lines changed: 16 additions & 0 deletions

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ What's New in Python 3.6.0 alpha 2
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #27066: Fixed SystemError if a custom opener (for open()) returns a
14+
negative number without setting an exception.
15+
1316
- Issue #26983: float() now always return an instance of exact float.
1417
The deprecation warning is emitted if __float__ returns an instance of
1518
a strict subclass of float. In a future versions of Python this can

Modules/_io/fileio.c

Lines changed: 7 additions & 1 deletion

0 commit comments

Comments
 (0)