From: Serhiy Storchaka Date: Sun, 20 Mar 2016 21:47:48 +0000 (+0200) Subject: Issue #26581: Use the first coding cookie on a line, not the last one. X-Git-Tag: v3.6.0a1~424 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a051bf3afbb30b7ddb7bd4c7ba03acc63288d6f2;p=thirdparty%2FPython%2Fcpython.git Issue #26581: Use the first coding cookie on a line, not the last one. --- a051bf3afbb30b7ddb7bd4c7ba03acc63288d6f2 diff --cc Misc/NEWS index ae0a1001686f,b5672c228baa..6f5c7ab0bf75 --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -10,31 -10,9 +10,34 @@@ Release date: tb Core and Builtins ----------------- + - Issue #26581: If coding cookie is specified multiple times on a line in + Python source code file, only the first one is taken to account. + +- Issue #26563: Debug hooks on Python memory allocators now raise a fatal + error if functions of the :c:func:`PyMem_Malloc` family are called without + holding the GIL. + +- Issue #26564: On error, the debug hooks on Python memory allocators now use + the :mod:`tracemalloc` module to get the traceback where a memory block was + allocated. + +- Issue #26558: The debug hooks on Python memory allocator + :c:func:`PyObject_Malloc` now detect when functions are called without + holding the GIL. + +- Issue #26516: Add :envvar`PYTHONMALLOC` environment variable to set the + Python memory allocators and/or install debug hooks. + +- Issue #26516: The :c:func`PyMem_SetupDebugHooks` function can now also be + used on Python compiled in release mode. + +- Issue #26516: The :envvar:`PYTHONMALLOCSTATS` environment variable can now + also be used on Python compiled in release mode. It now has no effect if + set to an empty string. + +- Issue #26516: In debug mode, debug hooks are now also installed on Python + memory allocators when Python is configured without pymalloc. + - Issue #26464: Fix str.translate() when string is ASCII and first replacements removes character, but next replacement uses a non-ASCII character or a string longer than 1 character. Regression introduced in Python 3.5.0.