]> granicus.if.org Git - python/commitdiff
merge 3.5 (#26171)
authorBenjamin Peterson <benjamin@python.org>
Thu, 21 Jan 2016 06:25:40 +0000 (22:25 -0800)
committerBenjamin Peterson <benjamin@python.org>
Thu, 21 Jan 2016 06:25:40 +0000 (22:25 -0800)
1  2 
Misc/NEWS
Modules/zipimport.c

diff --cc Misc/NEWS
index 8c6864c123e37d98d0cba83aabbb0e2dfec37931,dc375d0e03218ec2a03d61a062ce8af620918c76..01e933c460335e75dcf1db26a829701ea6f9a995
+++ b/Misc/NEWS
@@@ -58,88 -50,9 +58,91 @@@ Core and Builtin
    __bytes__, __trunc__, and __float__ returning instances of subclasses of
    bytes, int, and float to subclasses of bytes, int, and float correspondingly.
  
 +- Issue #25630: Fix a possible segfault during argument parsing in functions
 +  that accept filesystem paths.
 +
 +- Issue #23564: Fixed a partially broken sanity check in the _posixsubprocess
 +  internals regarding how fds_to_pass were passed to the child.  The bug had
 +  no actual impact as subprocess.py already avoided it.
 +
 +- Issue #25388: Fixed tokenizer crash when processing undecodable source code
 +  with a null byte.
 +
 +- Issue #25462: The hash of the key now is calculated only once in most
 +  operations in C implementation of OrderedDict.
 +
 +- Issue #22995: Default implementation of __reduce__ and __reduce_ex__ now
 +  rejects builtin types with not defined __new__.
 +
 +- Issue #24802: Avoid buffer overreads when int(), float(), compile(), exec()
 +  and eval() are passed bytes-like objects.  These objects are not
 +  necessarily terminated by a null byte, but the functions assumed they were.
 +
 +- Issue #25555: Fix parser and AST: fill lineno and col_offset of "arg" node
 +  when compiling AST from Python objects.
 +
 +- Issue #24726: Fixed a crash and leaking NULL in repr() of OrderedDict that
 +  was mutated by direct calls of dict methods.
 +
 +- Issue #25449: Iterating OrderedDict with keys with unstable hash now raises
 +  KeyError in C implementations as well as in Python implementation.
 +
 +- Issue #25395: Fixed crash when highly nested OrderedDict structures were
 +  garbage collected.
 +
 +- Issue #25401: Optimize bytes.fromhex() and bytearray.fromhex(): they are now
 +  between 2x and 3.5x faster.
 +
 +- Issue #25399: Optimize bytearray % args using the new private _PyBytesWriter
 +  API. Formatting is now between 2.5 and 5 times faster.
 +
 +- Issue #25274: sys.setrecursionlimit() now raises a RecursionError if the new
 +  recursion limit is too low depending at the current recursion depth. Modify
 +  also the "lower-water mark" formula to make it monotonic. This mark is used
 +  to decide when the overflowed flag of the thread state is reset.
 +
 +- Issue #24402: Fix input() to prompt to the redirected stdout when
 +  sys.stdout.fileno() fails.
 +
 +- Issue #25349: Optimize bytes % args using the new private _PyBytesWriter API.
 +  Formatting is now up to 2 times faster.
 +
 +- Issue #24806: Prevent builtin types that are not allowed to be subclassed from
 +  being subclassed through multiple inheritance.
 +
 +- Issue #25301: The UTF-8 decoder is now up to 15 times as fast for error
 +  handlers: ``ignore``, ``replace`` and ``surrogateescape``.
 +
 +- Issue #24848: Fixed a number of bugs in UTF-7 decoding of misformed data.
 +
 +- Issue #25267: The UTF-8 encoder is now up to 75 times as fast for error
 +  handlers: ``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass``.
 +  Patch co-written with Serhiy Storchaka.
 +
 +- Issue #25280: Import trace messages emitted in verbose (-v) mode are no
 +  longer formatted twice.
 +
 +- Issue #25227: Optimize ASCII and latin1 encoders with the ``surrogateescape``
 +  error handler: the encoders are now up to 3 times as fast. Initial patch
 +  written by Serhiy Storchaka.
 +
 +- Issue #25003: On Solaris 11.3 or newer, os.urandom() now uses the
 +  getrandom() function instead of the getentropy() function. The getentropy()
 +  function is blocking to generate very good quality entropy, os.urandom()
 +  doesn't need such high-quality entropy.
 +
 +- Issue #9232: Modify Python's grammar to allow trailing commas in the
 +  argument list of a function declaration.  For example, "def f(\*, a =
 +  3,): pass" is now legal. Patch from Mark Dickinson.
 +
 +- Issue #24965: Implement PEP 498 "Literal String Interpolation". This
 +  allows you to embed expressions inside f-strings, which are
 +  converted to normal strings at run time. Given x=3, then
 +  f'value={x}' == 'value=3'. Patch by Eric V. Smith.
 +
+ - Issue #26171: Fix possible integer overflow and heap corruption in
+   zipimporter.get_data().
  Library
  -------
  
Simple merge