]> granicus.if.org Git - python/commitdiff
Issue #18873: The tokenize module, IDLE, 2to3, and the findnocoding.py script
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 16 Sep 2013 20:57:00 +0000 (23:57 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 16 Sep 2013 20:57:00 +0000 (23:57 +0300)
now detect Python source code encoding only in comment lines.

1  2 
Lib/idlelib/IOBinding.py
Lib/tokenize.py
Misc/NEWS

Simple merge
diff --cc Lib/tokenize.py
Simple merge
diff --cc Misc/NEWS
index 7e2a65da1ea089597a6448f0382b67ea70003549,25f395a4bf9172de269f905d6fa12fe9c27665f4..2f513078669308f4d076719fff3db8e821e77cb5
+++ b/Misc/NEWS
@@@ -7,105 -12,58 +7,117 @@@ Projected Release date: 2013-09-2
  Core and Builtins
  -----------------
  
 -- Issue #18942: sys._debugmallocstats() output was damaged on Windows.
 +- Issue #18818: The "encodingname" part of PYTHONIOENCODING is now optional.
  
 -- Issue #18667: Add missing "HAVE_FCHOWNAT" symbol to posix._have_functions.
 +Library
 +-------
  
 -- Issue #18368: PyOS_StdioReadline() no longer leaks memory when realloc()
 -  fails.
++- Issue #18873: The tokenize module now detects Python source code encoding
++  only in comment lines.
 -- Issue #16741: Fix an error reporting in int().
 +- Issue #17764: Enable http.server to bind to a user specified network
 +  interface.  Patch contributed by Malte Swart.
  
 -- Issue #17899: Fix rare file descriptor leak in os.listdir().
 +- Issue #18937: Add an assertLogs() context manager to unittest.TestCase
 +  to ensure that a block of code emits a message using the logging module.
  
 -- Issue #18552: Check return value of PyArena_AddPyObject() in
 -  obj2ast_object().
 +- Issue #17324: Fix http.server's request handling case on trailing '/'. Patch
 +  contributed by Vajrasky Kok.
  
 -- Issue #18560: Fix potential NULL pointer dereference in sum().
 +- Issue #19018: The heapq.merge() function no longer suppresses IndexError
 +  in the underlying iterables.
  
 -- Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],
 -  prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
 +- Issue #18784: The uuid module no more attempts to load libc via ctypes.CDLL,
 +  if all necessary functions are already found in libuuid.
 +  Patch by Evgeny Sologubov.
  
 -- Issue #18344: Fix potential ref-leaks in _bufferedreader_read_all().
 +- The :envvar:`PYTHONFAULTHANDLER` environment variable now only enables the
 +  faulthandler module if the variable is non-empty. Same behaviour than other
 +  variables like :envvar:`PYTHONDONTWRITEBYTECODE`.
  
 -- Issue #17872: Fix a segfault in marshal.load() when input stream returns
 -  more bytes than requested.
 +- Issue #1565525: New function ``traceback.clear_frames`` will clear
 +  the local variables of all the stack frames referenced by a traceback
 +  object.
  
 -- Issue #18426: Fix NULL pointer dereference in C extension import when
 -  PyModule_GetDef() returns an error.
  
 -- Issue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the
 -  tstate is first removed from TLS and then deallocated.
 +Tests
 +-----
  
 -- Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
 -  OverflowError when an argument of %c format is out of range.
 +- Issue #18952: Fix regression in support data downloads introduced when
 +  test.support was converted to a package. Regression noticed by Zachary
 +  Ware.
  
 -- Issue #18137: Detect integer overflow on precision in float.__format__()
 -  and complex.__format__().
 +IDLE
 +----
  
 -- Issue #18183: Fix various unicode operations on strings with large unicode
 -  codepoints.
++- Issue #18873: IDLE now detects Python source code encoding only in comment
++  lines.
 -- Issue #18180: Fix ref leak in _PyImport_GetDynLoadWindows().
 +- Issue #18988: The "Tab" key now works when a word is already autocompleted.
  
 -- Issue #18038: SyntaxError raised during compilation sources with illegal
 -  encoding now always contains an encoding name.
 +Documentation
 +-------------
  
 -- Issue #17644: Fix a crash in str.format when curly braces are used in square
 -  brackets.
 +- Issue #17003: Unified the size argument names in the io module with common
 +  practice.
  
 -- Issue #17983: Raise a SyntaxError for a ``global __class__`` statement in a
 -  class body.
++Tools/Demos
++-----------
++
++- Issue #18873: 2to3 and the findnocoding.py script now detect Python source
++  code encoding only in comment lines.
++
 +
 +What's New in Python 3.4.0 Alpha 2?
 +===================================
 +
 +Release date: 2013-09-09
 +
 +Core and Builtins
 +-----------------
 +
 +- Issue #18942: sys._debugmallocstats() output was damaged on Windows.
 +
 +- Issue #18571: Implementation of the PEP 446: file descriptors and file
 +  handles are now created non-inheritable; add functions
 +  os.get/set_inheritable(), os.get/set_handle_inheritable() and
 +  socket.socket.get/set_inheritable().
 +
 +- Issue #11619: The parser and the import machinery do not encode Unicode
 +  filenames anymore on Windows.
 +
 +- Issue #18808: Non-daemon threads are now automatically joined when
 +  a sub-interpreter is shutdown (it would previously dump a fatal error).
 +
 +- Remove supporting for compiling on systems without getcwd().
 +
 +- Issue #18774: Remove last bits of GNU PTH thread code and thread_pth.h.
 +
 +- Issue #18771: Add optimization to set object lookups to reduce the cost
 +  of hash collisions.  The core idea is to inspect a second key/hash pair
 +  for each cache line retrieved.
 +
 +- Issue #16105: When a signal handler fails to write to the file descriptor
 +  registered with ``signal.set_wakeup_fd()``, report an exception instead
 +  of ignoring the error.
 +
 +- Issue #18722: Remove uses of the "register" keyword in C code.
 +
 +- Issue #18667: Add missing "HAVE_FCHOWNAT" symbol to posix._have_functions.
 +
 +- Issue #16499: Add command line option for isolated mode.
 +
 +- Issue #15301: Parsing fd, uid, and gid parameters for builtins
 +  in Modules/posixmodule.c is now far more robust.
 +
 +- Issue #18368: PyOS_StdioReadline() no longer leaks memory when realloc()
 +  fail.
  
 -- Issue #17927: Frame objects kept arguments alive if they had been copied into
 -  a cell, even if the cell was cleared.
 +- Issue #17934: Add a clear() method to frame objects, to help clean up
 +  expensive details (local variables) and break reference cycles.
 +
 +- Issue #18780: %-formatting codes %d, %i, and %u now treat int-subclasses
 +  as int (displays value of int-subclass instead of str(int-subclass) ).
  
  Library
  -------