]> granicus.if.org Git - python/commitdiff
Raise ValueError when attempting to set the _CHUNK_SIZE attribute of a TextIOWrapper...
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 13 Jul 2011 19:08:56 +0000 (21:08 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 13 Jul 2011 19:08:56 +0000 (21:08 +0200)
1  2 
Misc/NEWS
Modules/_io/textio.c

diff --cc Misc/NEWS
index 8a848916c1e91b04579dd154d39d503a81c5bb20,25c1f3cc67e6aa783a3b00033eface5a9968192f..60d43f12e8925d0091df7d7b0a25d5cc3d1a214b
+++ b/Misc/NEWS
@@@ -225,42 -123,8 +225,45 @@@ Core and Builtin
  Library
  -------
  
++- Raise ValueError when attempting to set the _CHUNK_SIZE attribute of a
++  TextIOWrapper to a huge value, not TypeError.
++
 +- Issue #12504: Close file handles in a timely manner in packaging.database.
 +  This fixes a bug with the remove (uninstall) feature on Windows.
 +
 +- Issues #12169 and #10510: Factor out code used by various packaging commands
 +  to make HTTP POST requests, and make sure it uses CRLF.
 +
 +- Issue #12016: Multibyte CJK decoders now resynchronize faster. They only
 +  ignore the first byte of an invalid byte sequence. For example,
 +  b'\xff\n'.decode('gb2312', 'replace') gives '\ufffd\n' instead of '\ufffd'.
 +
 +- Issue #12459: time.sleep() now raises a ValueError if the sleep length is
 +  negative, instead of an infinite sleep on Windows or raising an IOError on
 +  Linux for example, to have the same behaviour on all platforms.
 +
 +- Issue #12451: pydoc: html_getfile() now uses tokenize.open() to support
 +  Python scripts using a encoding different than UTF-8 (read the coding cookie
 +  of the script).
 +
 +- Issue #12493: subprocess: Popen.communicate() now also handles EINTR errors
 +  if the process has only one pipe.
 +
 +- Issue #12467: warnings: fix a race condition if a warning is emitted at
 +  shutdown, if globals()['__file__'] is None.
 +
 +- Issue #12451: pydoc: importfile() now opens the Python script in binary mode,
 +  instead of text mode using the locale encoding, to avoid encoding issues.
 +
 +- Issue #12451: runpy: run_path() now opens the Python script in binary mode,
 +  instead of text mode using the locale encoding, to support other encodings
 +  than UTF-8 (scripts using the coding cookie).
 +
 +- Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead
 +  of the text mode (using the locale encoding) to avoid encoding issues.
 +
  - Issue #12147: Adjust the new-in-3.2 smtplib.send_message method for better
 -  conformance to the RFCs: correctly handle Sender and Resent headers.
 +  conformance to the RFCs:  correctly handle Sender and Resent- headers.
  
  - Issue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed by
    the garbage collector while the Heap lock is held.
Simple merge