]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #26581: Use the first coding cookie on a line, not the last one.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 20 Mar 2016 21:47:48 +0000 (23:47 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 20 Mar 2016 21:47:48 +0000 (23:47 +0200)
1  2 
Lib/tokenize.py
Misc/NEWS
Parser/tokenizer.c

diff --cc Lib/tokenize.py
Simple merge
diff --cc Misc/NEWS
index ae0a1001686fefac1adf510c31db2bc647806ceb,b5672c228baa9f21076604cef1f4e1ce750b991a..6f5c7ab0bf75549b95c435c7df6df8f10661241a
+++ 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.
Simple merge