summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-11-20 23:34:31 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-11-20 23:34:31 (GMT)
commit322656596abfd772b0573731a78676f4a16f2d34 (patch)
tree5e138ae18baa1dee3ff6fd9a823cfacc5e67d62b /Misc
parentad100c3acb566a8a9a6094a9ace96c6399fab394 (diff)
downloadcpython-322656596abfd772b0573731a78676f4a16f2d34.zip
cpython-322656596abfd772b0573731a78676f4a16f2d34.tar.gz
cpython-322656596abfd772b0573731a78676f4a16f2d34.tar.bz2
Fixed issue #4233.
Changed semantic of _fileio.FileIO's close() method on file objects with closefd=False. The file descriptor is still kept open but the file object behaves like a closed file. The FileIO object also got a new readonly attribute closefd. Approved by Barry Backport of r67106 from the py3k branch
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index c97f6b3..7e6787a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,11 @@ What's New in Python 2.7 alpha 1
Core and Builtins
-----------------
+- Issue #4233: Changed semantic of ``_fileio.FileIO``'s ``close()``
+ method on file objects with closefd=False. The file descriptor is still
+ kept open but the file object behaves like a closed file. The ``FileIO``
+ object also got a new readonly attribute ``closefd``.
+
- Issue #4348: Some bytearray methods returned that didn't cause any change to
the bytearray, returned the same bytearray instead of a copy.