Changelog
python2.7 (2.7.13-3) unstable; urgency=medium
* Update to 20170608 from the 2.7 branch.
- bpo-27945: Fixed various segfaults with dict when input collections are
mutated during searching, inserting or comparing.
- bpo-25794: Fixed type.__setattr__() and type.__delattr__() for
non-interned or unicode attribute names.
- bpo-29935: Fixed error messages in the index() method of tuple and list
when pass indices of wrong type.
- bpo-28598: Support __rmod__ for subclasses of str being called before
str.__mod__.
- bpo-29602: Fix incorrect handling of signed zeros in complex constructor
for complex subclasses and for inputs having a __complex__ method.
- bpo-29347: Fixed possibly dereferencing undefined pointers
when creating weakref objects.
- Issue #14376: Allow sys.exit to accept longs as well as ints.
- Issue #29028: Fixed possible use-after-free bugs in the subscription
of the buffer object with custom index object.
- Issue #29145: Fix overflow checks in string, bytearray and unicode.
- Issue #28932: Do not include <sys/random.h> if it does not exist.
- bpo-30378: Fix the problem that logging.handlers.SysLogHandler cannot
handle IPv6 addresses.
- bpo-29960: Preserve generator state when _random.Random.setstate()
raises an exception.
- bpo-30310: tkFont now supports unicode options (e.g. font family).
- bpo-30414: multiprocessing.Queue._feed background running
thread do not break from main loop on exception.
- bpo-30003: Fix handling escape characters in HZ codec.
- bpo-30375: Warnings emitted when compile a regular expression now always
point to the line in the user code. Previously they could point into
inners of the re module if emitted from inside of groups or conditionals.
- bpo-30363: Running Python with the -3 option now warns about regular
expression syntax that is invalid or has different semantic in Python 3
or will change the behavior in future Python versions.
- bpo-30365: Running Python with the -3 option now emits deprecation
warnings for getchildren() and getiterator() methods of the Element class
in the xml.etree.cElementTree module and when pass the html argument to
xml.etree.ElementTree.XMLParser().
- bpo-30365: Fixed a deprecation warning about the doctype() method of the
xml.etree.ElementTree.XMLParser class. Now it is emitted only when define
the doctype() method in the subclass of XMLParser.
- bpo-29990: Fix range checking in GB18030 decoder.
- bpo-30243: Removed the __init__ methods of _json's scanner and encoder.
Misusing them could cause memory leaks or crashes. Now scanner and
encoder objects are completely initialized in the __new__ methods.
- Revert bpo-26293 for zipfile breakage. See also bpo-29094.
- bpo-30070: Fixed leaks and crashes in errors handling in the parser
module.
- bpo-30061: Fixed crashes in IOBase methods next() and readlines() when
readline() or next() respectively return non-sizeable object.
Fixed possible other errors caused by not checking results of
PyObject_Size(), PySequence_Size(), or PyMapping_Size().
- bpo-30011: Fixed race condition in HTMLParser.unescape().
- bpo-30068: _io._IOBase.readlines will check if it's closed first when
hint is present.
- bpo-27863: Fixed multiple crashes in ElementTree caused by race
conditions and wrong types.
- bpo-29942: Fix a crash in itertools.chain.from_iterable when encountering
long runs of empty iterables.
- bpo-29861: Release references to tasks, their arguments and their results
as soon as they are finished in multiprocessing.Pool.
- bpo-27880: Fixed integer overflow in cPickle when pickle large strings or
too many objects.
- bpo-29110: Fix file object leak in aifc.open() when file is given as a
filesystem path and is not in valid AIFF format.
- Issue #29354: Fixed inspect.getargs() for parameters which are cell
variables.
- Issue #29335: Fix subprocess.Popen.wait() when the child process has
exited to a stopped instead of terminated state (ex: when under ptrace).
- Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.
- Issue #29188: Support glibc 2.24 on Linux: don't use getentropy()
function but read from /dev/urandom to get random bytes, for example in
os.urandom(). On Linux, getentropy() is implemented which getrandom()
is blocking mode, whereas os.urandom() should not block.
- Issue #29142: In urllib, suffixes in no_proxy environment variable
with leading dots could match related hostnames again (e.g. .b.c
matches a.b.c).
- Issue #13051: Fixed recursion errors in large or resized
curses.textpad.Textbox.
- Issue #9770: curses.ascii predicates now work correctly with negative
integers.
- Issue #28427: old keys should not remove new values from
WeakValueDictionary when collecting from another thread.
- Issue #28998: More APIs now support longs as well as ints.
- Issue 28923: Remove editor artifacts from Tix.py,
including encoding not recognized by codecs.lookup.
- Issue #29019: Fix dict.fromkeys(x) overallocates when x is sparce dict.
- Issue #19542: Fix bugs in WeakValueDictionary.setdefault() and
WeakValueDictionary.pop() when a GC collection happens in another
thread.
- Issue #28925: cPickle now correctly propagates errors when unpickle
instances of old-style classes.
- Issue #26355: Add canonical header link on each page to corresponding
major version of the documentation.
- Issue #12067: Rewrite Comparisons section in the Expressions chapter of
the language reference. Some of the details of comparing mixed types were
incorrect or ambiguous. Added default behaviour and consistency
suggestions for user-defined classes.
- bpo-29243: Prevent unnecessary rebuilding of Python during ``make test``,
``make install`` and some other make targets when configured with
``--enable-optimizations``.
- bpo-23404: Don't regenerate generated files based on file modification
time anymore: the action is now explicit. Replace ``make touch`` with
``make regen-all``.
- bpo-27593: sys.version and the platform module python_build(),
python_branch(), and python_revision() functions now use
git information rather than hg when building from a repo.
- bpo-29643: Fix ``--enable-optimization`` configure option didn't work.
- Issue #28768: Fix implicit declaration of function _setmode.
- bpo-11790: Fix sporadic failures in
test_multiprocessing.WithProcessesTestCondition.
- bpo-30236: Backported test.regrtest options -m/--match and -G/--failfast
from Python 3.
- bpo-30223: To unify running tests in Python 2.7 and Python 3, the test
package can be run as a script. This is equivalent to running the
test.regrtest module as a script.
- bpo-30207: To simplify backports from Python 3, the test.test_support
module was converted into a package and renamed to test.support. The
test.script_helper module was moved into the test.support package.
Names test.test_support and test.script_helper are left as aliases to
test.support and test.support.script_helper.
- bpo-30197: Enhanced function swap_attr() in the test.test_support module.
It now works when delete replaced attribute inside the with statement.
The old value of the attribute (or None if it doesn't exist) now will be
assigned to the target of the "as" clause, if there is one.
Also backported function swap_item().
- bpo-15083: Convert ElementTree doctests to unittests.
* Explicitly use the system python for byte compilation in postinst scripts.
Addresses: #852163. LP: #1682934.
* Build using -fexceptions on ppc64 and ppc64el.
Closes: #862925. LP: #1691848.
-- Matthias Klose <email address hidden> Thu, 08 Jun 2017 09:45:33 -0700