]> granicus.if.org Git - python/commitdiff
Merge 3.5 (issue #27404)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 28 Jul 2016 15:08:52 +0000 (17:08 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 28 Jul 2016 15:08:52 +0000 (17:08 +0200)
1  2 
Misc/NEWS

diff --cc Misc/NEWS
index 13da7535082b6a8db1d7e43c5f28109aefd65ba8,243f1263ecad7302d78ff05e9e74f29545eff4e5..0872384b3ee999ab04d31973eae84c907a68497f
+++ b/Misc/NEWS
@@@ -193,10 -93,7 +193,10 @@@ Librar
  - Issue #26386: Fixed ttk.TreeView selection operations with item id's
    containing spaces.
  
- - Issue #22636: Avoid shell injection problems with
 +- Issue #8637: Honor a pager set by the env var MANPAGER (in preference to
 +  one set by the env var PAGER).
 +
+ - [Security] Issue #22636: Avoid shell injection problems with
    ctypes.util.find_library().
  
  - Issue #16182: Fix various functions in the "readline" module to use the
@@@ -296,244 -159,7 +296,244 @@@ What's New in Python 3.6.0 alpha 
  Core and Builtins
  -----------------
  
 -- Issue #26930: Update Windows builds to use OpenSSL 1.0.2h.
 +- Issue #27095: Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes.
 +  Patch by Demur Rumed.
 +
 +- Issue #27190: Raise NotSupportedError if sqlite3 is older than 3.3.1.
 +  Patch by Dave Sawyer.
 +
 +- Issue #27286: Fixed compiling BUILD_MAP_UNPACK_WITH_CALL opcode.  Calling
 +  function with generalized unpacking (PEP 448) and conflicting keyword names
 +  could cause undefined behavior.
 +
 +- Issue #27140: Added BUILD_CONST_KEY_MAP opcode.
 +
 +- Issue #27186: Add support for os.PathLike objects to open() (part of PEP 519).
 +
 +- Issue #27066: Fixed SystemError if a custom opener (for open()) returns a
 +  negative number without setting an exception.
 +
 +- Issue #26983: float() now always return an instance of exact float.
 +  The deprecation warning is emitted if __float__ returns an instance of
 +  a strict subclass of float.  In a future versions of Python this can
 +  be an error.
 +
 +- Issue #27097: Python interpreter is now about 7% faster due to optimized
 +  instruction decoding.  Based on patch by Demur Rumed.
 +
 +- Issue #26647: Python interpreter now uses 16-bit wordcode instead of bytecode.
 +  Patch by Demur Rumed.
 +
 +- Issue #23275: Allow assigning to an empty target list in round brackets:
 +  () = iterable.
 +
 +- Issue #27243: Update the __aiter__ protocol: instead of returning
 +  an awaitable that resolves to an asynchronous iterator, the asynchronous
 +  iterator should be returned directly.  Doing the former will trigger a
 +  PendingDeprecationWarning.
 +
 +
 +Library
 +-------
 +
 +- Comment out socket (SO_REUSEPORT) and posix (O_SHLOCK, O_EXLOCK) constants
 +  exposed on the API which are not implemented on GNU/Hurd. They would not
 +  work at runtime anyway.
 +
 +- Issue #25455: Fixed crashes in repr of recursive ElementTree.Element and
 +  functools.partial objects.
 +
 +- Issue #27294: Improved repr for Tkinter event objects.
 +
 +- Issue #20508: Improve exception message of IPv{4,6}Network.__getitem__.
 +  Patch by Gareth Rees.
 +
- - Issue #26556: Update expat to 2.1.1, fixes CVE-2015-1283.
++- [Security] Issue #26556: Update expat to 2.1.1, fixes CVE-2015-1283.
 +
- - Fix TLS stripping vulnerability in smtplib, CVE-2016-0772.  Reported by Team
++- [Security] Fix TLS stripping vulnerability in smtplib, CVE-2016-0772.  Reported by Team
 +  Oststrom
 +
 +- Issue #21386: Implement missing IPv4Address.is_global property.  It was
 +  documented since 07a5610bae9d.  Initial patch by Roger Luethi.
 +
 +- Issue #27029: Removed deprecated support of universal newlines mode from
 +  ZipFile.open().
 +
 +- Issue #27030: Unknown escapes consisting of ``'\'`` and an ASCII letter in
 +  regular expressions now are errors.  The re.LOCALE flag now can be used
 +  only with bytes patterns.
 +
 +- Issue #27186: Add os.PathLike support to DirEntry (part of PEP 519).
 +  Initial patch by Jelle Zijlstra.
 +
 +- Issue #20900: distutils register command now decodes HTTP responses
 +  correctly.  Initial patch by ingrid.
 +
 +- Issue #27186: Add os.PathLike support to pathlib, removing its provisional
 +  status (part of PEP 519). Initial patch by Dusty Phillips.
 +
 +- Issue #27186: Add support for os.PathLike objects to os.fsencode() and
 +  os.fsdecode() (part of PEP 519).
 +
 +- Issue #27186: Introduce os.PathLike and os.fspath() (part of PEP 519).
 +
 +- A new version of typing.py provides several new classes and
 +  features: @overload outside stubs, Reversible, DefaultDict, Text,
 +  ContextManager, Type[], NewType(), TYPE_CHECKING, and numerous bug
 +  fixes (note that some of the new features are not yet implemented in
 +  mypy or other static analyzers).  Also classes for PEP 492
 +  (Awaitable, AsyncIterable, AsyncIterator) have been added (in fact
 +  they made it into 3.5.1 but were never mentioned).
 +
 +- Issue #25738: Stop http.server.BaseHTTPRequestHandler.send_error() from
 +  sending a message body for 205 Reset Content.  Also, don't send Content
 +  header fields in responses that don't have a body.  Patch by Susumu
 +  Koshiba.
 +
 +- Issue #21313: Fix the "platform" module to tolerate when sys.version
 +  contains truncated build information.
 +
- - Issue #26839: On Linux, :func:`os.urandom` now calls ``getrandom()`` with
++- [Security] Issue #26839: On Linux, :func:`os.urandom` now calls ``getrandom()`` with
 +  ``GRND_NONBLOCK`` to fall back on reading ``/dev/urandom`` if the urandom
 +  entropy pool is not initialized yet. Patch written by Colm Buckley.
 +
 +- Issue #23883: Added missing APIs to __all__ to match the documented APIs
 +  for the following modules: cgi, mailbox, mimetypes, plistlib and smtpd.
 +  Patches by Jacek Kołodziej.
 +
 +- Issue #27164: In the zlib module, allow decompressing raw Deflate streams
 +  with a predefined zdict.  Based on patch by Xiang Zhang.
 +
 +- Issue #24291: Fix wsgiref.simple_server.WSGIRequestHandler to completely
 +  write data to the client.  Previously it could do partial writes and
 +  truncate data.  Also, wsgiref.handler.ServerHandler can now handle stdout
 +  doing partial writes, but this is deprecated.
 +
 +- Issue #21272: Use _sysconfigdata.py to initialize distutils.sysconfig.
 +
 +- Issue #19611: :mod:`inspect` now reports the implicit ``.0`` parameters
 +  generated by the compiler for comprehension and generator expression scopes
 +  as if they were positional-only parameters called ``implicit0``.
 +  Patch by Jelle Zijlstra.
 +
 +- Issue #26809: Add ``__all__`` to :mod:`string`.  Patch by Emanuel Barry.
 +
 +- Issue #26373: subprocess.Popen.communicate now correctly ignores
 +  BrokenPipeError when the child process dies before .communicate()
 +  is called in more/all circumstances.
 +
 +- signal, socket, and ssl module IntEnum constant name lookups now return a
 +  consistent name for values having multiple names.  Ex: signal.Signals(6)
 +  now refers to itself as signal.SIGALRM rather than flipping between that
 +  and signal.SIGIOT based on the interpreter's hash randomization seed.
 +
 +- Issue #27167: Clarify the subprocess.CalledProcessError error message text
 +  when the child process died due to a signal.
 +
 +- Issue #25931: Don't define socketserver.Forking* names on platforms such
 +  as Windows that do not support os.fork().
 +
 +- Issue #21776: distutils.upload now correctly handles HTTPError.
 +  Initial patch by Claudiu Popa.
 +
 +- Issue #26526: Replace custom parse tree validation in the parser
 +  module with a simple DFA validator.
 +
 +- Issue #27114: Fix SSLContext._load_windows_store_certs fails with
 +  PermissionError
 +
 +- Issue #18383: Avoid creating duplicate filters when using filterwarnings
 +  and simplefilter.  Based on patch by Alex Shkop.
 +
 +- Issue #23026: winreg.QueryValueEx() now return an integer for REG_QWORD type.
 +
 +- Issue #26741: subprocess.Popen destructor now emits a ResourceWarning warning
 +  if the child process is still running.
 +
 +- Issue #27056: Optimize pickle.load() and pickle.loads(), up to 10% faster
 +  to deserialize a lot of small objects.
 +
 +- Issue #21271: New keyword only parameters in reset_mock call.
 +
 +IDLE
 +----
 +
 +- Issue #5124: Paste with text selected now replaces the selection on X11.
 +  This matches how paste works on Windows, Mac, most modern Linux apps,
 +  and ttk widgets.  Original patch by Serhiy Storchaka.
 +
 +- Issue #24750: Switch all scrollbars in IDLE to ttk versions.
 +  Where needed, minimal tests are added to cover changes.
 +
 +- Issue #24759: IDLE requires tk 8.5 and availability ttk widgets.
 +  Delete now unneeded tk version tests and code for older versions.
 +  Add test for IDLE syntax colorizoer.
 +
 +- Issue #27239: idlelib.macosx.isXyzTk functions initialize as needed.
 +
 +- Issue #27262: move Aqua unbinding code, which enable context menus, to maxosx.
 +
 +- Issue #24759: Make clear in idlelib.idle_test.__init__ that the directory
 +  is a private implementation of test.test_idle and tool for maintainers.
 +
 +- Issue #27196: Stop 'ThemeChanged' warnings when running IDLE tests.
 +  These persisted after other warnings were suppressed in #20567.
 +  Apply Serhiy Storchaka's update_idletasks solution to four test files.
 +  Record this additional advice in idle_test/README.txt
 +
 +- Issue #20567: Revise idle_test/README.txt with advice about avoiding
 +  tk warning messages from tests.  Apply advice to several IDLE tests.
 +
 +- Issue #24225: Update idlelib/README.txt with new file names
 +  and event handlers.
 +
 +- Issue #27156: Remove obsolete code not used by IDLE.  Replacements:
 +  1. help.txt, replaced by help.html, is out-of-date and should not be used.
 +  Its dedicated viewer has be replaced by the html viewer in help.py.
 +  2. ‘`import idlever; I = idlever.IDLE_VERSION`’ is the same as
 +  ‘`import sys; I = version[:version.index(' ')]`’
 +  3. After ‘`ob = stackviewer.VariablesTreeItem(*args)`’,
 +  ‘`ob.keys() == list(ob.object.keys)`’.
 +  4. In macosc, runningAsOSXAPP == isAquaTk; idCarbonAquaTk == isCarbonTk
 +
 +- Issue #27117: Make colorizer htest and turtledemo work with dark themes.
 +  Move code for configuring text widget colors to a new function.
 +
 +- Issue #24225: Rename many `idlelib/*.py` and `idle_test/test_*.py` files.
 +  Edit files to replace old names with new names when the old name
 +  referred to the module rather than the class it contained.
 +  See the issue and IDLE section in What's New in 3.6 for more.
 +
 +- Issue #26673: When tk reports font size as 0, change to size 10.
 +  Such fonts on Linux prevented the configuration dialog from opening.
 +
 +- Issue #21939: Add test for IDLE's percolator.
 +  Original patch by Saimadhav Heblikar.
 +
 +- Issue #21676: Add test for IDLE's replace dialog.
 +  Original patch by Saimadhav Heblikar.
 +
 +- Issue #18410: Add test for IDLE's search dialog.
 +  Original patch by Westley Martínez.
 +
 +- Issue #21703: Add test for undo delegator.  Patch mostly by
 +  Saimadhav Heblikar .
 +
 +- Issue #27044: Add ConfigDialog.remove_var_callbacks to stop memory leaks.
 +
 +- Issue #23977: Add more asserts to test_delegator.
 +
 +Documentation
 +-------------
 +
 +- Issue #16484: Change the default PYTHONDOCS URL to "https:", and fix the
 +  resulting links to use lowercase.  Patch by Sean Rodman, test by Kaushik
 +  Nadikuditi.
 +
 +- Issue #24136: Document the new PEP 448 unpacking syntax of 3.5.
 +
 +- Issue #22558: Add remaining doc links to source code for Python-coded modules.
 +  Patch by Yoni Lavi.
  
  Tests
  -----
@@@ -1089,12 -493,7 +1089,12 @@@ Librar
  - Issue #26560: Avoid potential ValueError in BaseHandler.start_response.
    Initial patch by Peter Inglesby.
  
- - Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store
 +- Issue #26567: Add a new function :c:func:`PyErr_ResourceWarning` function to
 +  pass the destroyed object. Add a *source* attribute to
 +  :class:`warnings.WarningMessage`. Add warnings._showwarnmsg() which uses
 +  tracemalloc to get the traceback where source object was allocated.
 +
+ - [Security] Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store
    is empty. Patch by Baji.
  
  - Issue #26569: Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex`
    the connected socket) when verify_request() returns false.  Patch by Aviv
    Palivoda.
  
- - Issue #25939: On Windows open the cert store readonly in ssl.enum_certificates.
 +- Issue #23430: Change the socketserver module to only catch exceptions
 +  raised from a request handler that are derived from Exception (instead of
 +  BaseException).  Therefore SystemExit and KeyboardInterrupt no longer
 +  trigger the handle_error() method, and will now to stop a single-threaded
 +  server.
 +
+ - [Security] Issue #25939: On Windows open the cert store readonly in ssl.enum_certificates.
  
  - Issue #25995: os.walk() no longer uses FDs proportional to the tree depth.