Commits on Oct 18, 2018
  1. bpo-35011: Restore use of pyexpatns.h in libexpat (GH-9939)

    gpshead committed Oct 18, 2018
    Restores the use of pyexpatns.h to isolate our embedded copy of the expat C
    library so that its symbols do not conflict at link or dynamic loading time
    with an embedding application or other extension modules with their own
    version of libexpat.
    5dc3f23#diff-3afaf7274c90ce1b7405f75ad825f545 inadvertently removed it when upgrading expat.
Commits on Oct 17, 2018
  1. bpo-24658: Fix read/write greater than 2 GiB on macOS (GH-1705)

    matrixise authored and vstinner committed Oct 17, 2018
     On macOS, fix reading from and writing into a file with a size larger than 2 GiB.
  2. Add missing comma to wsgiref doc (GH-9932)

    csabella authored and pablogsal committed Oct 17, 2018
  3. bpo-23420: Verify the value of '-s' when execute the CLI of cProfile (

    2 people authored and vstinner committed Oct 17, 2018
    Verify the value for the parameter '-s' of the cProfile CLI. Patch by Robert
    Co-authored-by: Robert Kuska <>
  4. Doc: Fix is_prime (GH-9909)

    JulienPalard committed Oct 17, 2018
Commits on Oct 16, 2018
  1. In email docs, correct spelling of foregoing (#9856)

    csabella authored and bitdancer committed Oct 16, 2018
  2. In email.parser in message_from_bytes, update `strict` to `policy` (#…

    csabella authored and bitdancer committed Oct 16, 2018
    According to the versionchanged note, the `strict` argument was removed in 3.3 and `policy` was added, but the name of the argument in the paragraph wasn't updated.
  3. bpo-34997: Fix test_logging.ConfigDictTest.test_out_of_order (GH-9913)

    pablogsal committed Oct 16, 2018
    When runnint test_logging with --huntrleaks after commit
    18fb1fb, test_out_of_order fails
    to raise ValueError due to the fact that the new test
    test_out_of_order_with_dollar_style mutates the out_of_order
    dictionary. Even if the test copies the dictionary first, the mutation
    is done in a very deep level so the original one is also affected.
  4. Added CLI starter example to logging cookbook. (GH-9910)

    vsajip committed Oct 16, 2018
Commits on Oct 15, 2018
  1. bpo-34783: Fix test_nonexisting_script() (GH-9896)

    vstinner committed Oct 15, 2018
    Fix test_cmd_line_script.test_nonexisting_script(): the test must not
    rely on sys.executable, since main.c uses config->program which can
    be different than sys.executable in many cases (for example, on macOS
    when using the framework).
  2. bpo-23554: Change echo server example class name from EchoServerClien…

    bradengroom authored and 1st1 committed Oct 15, 2018
    …tProtocol to EchoServerProtocol (GH-9859)
  3. bpo-34989: fix current_line_num() (GH-9889)

    vstinner committed Oct 15, 2018 now handles errors on computing the line number
    of a Python frame.
    * PyFrameObjectPtr.current_line_num() now catchs any Exception on
      calling addr2line(), instead of failing with a surprising "<class
      'TypeError'> 'FakeRepr' object is not subscriptable" error.
    * All callers of current_line_num() now handle current_line_num()
      returning None.
    * PyFrameObjectPtr.current_line() now also catchs IndexError on
      getting a line from the Python source file.
  4. fix dangling keyfunc examples in documentation of heapq and sorted (#…

    wm75 authored and briancurtin committed Oct 15, 2018
    * fix dangling mention of key=str.lower in heapq doc
    * Fix dangling mention of keyfunc example for sorted()
  5. bpo-34844: logging.Formatter enhancement - Ensure style and format st…

    BNMetrics authored and vsajip committed Oct 15, 2018
    …ring matches in logging.Formatter (GH-9703)
Commits on Oct 14, 2018
  1. bpo-34974: Do not replace unexpected errors in bytes() and bytearray(…

    serhiy-storchaka committed Oct 14, 2018
    …). (GH-9852)
    bytes and bytearray constructors converted unexpected exceptions
    (e.g. MemoryError and KeyboardInterrupt) to TypeError.
  2. bpo-34939: Allow annotated global names in module namespace (GH-9844)

    pablogsal committed Oct 14, 2018
    Allow annotated global names in the module namespace after the symbol is
    declared as global. Previously, only symbols annotated before they are declared
    as global (i.e. inside a function) were allowed. This change allows symbols to be
    declared as global before the annotation happens in the global scope.
  3. bpo-34521: Add NEWS entry for changes in GH-9613 (GH-9850)

    pablogsal committed Oct 14, 2018
    * Add News entry for the change in multiprocessing.reduction.recvfds
    made in GH-9613.
  4. Update compound_stmts.rst (#9864)

    andresdelfino authored and asvetlov committed Oct 14, 2018
  5. bpo-34941: Fix searching Element subclasses. (GH-9766)

    serhiy-storchaka committed Oct 14, 2018
    Methods find(), findtext() and findall() of xml.etree.ElementTree.Element
    were not able to find chldren which are instances of Element subclasses.
  6. bpo-33656: Move pyshell ctypes import inside try block. (GH-9858)

    terryjreedy committed Oct 14, 2018
    A Windows build with _tkinter, tkinter, and idlelib
    but without ctypes is unlikely but apparently possible.
Commits on Oct 13, 2018
  1. Add new tests for bytes and bytearray constructors. (GH-9843)

    serhiy-storchaka committed Oct 13, 2018
    Covered all special cases: bytes, tuple, list, differend
    kinds of iterables and iterators.
  2. Fixes issues in Windows release upload script (GH-9845)

    zooba authored and miss-islington committed Oct 13, 2018
  3. bpo-22872: multiprocessing.Queue's put() and get() now raise ValueErr…

    ZackerySpytz authored and serhiy-storchaka committed Oct 13, 2018
    …or if the queue is closed. (GH-9010)
    Previously, put() and get() would raise AssertionError and OSError,
  4. bpo-34967: Sphinx is deprecating add_description_unit, use add_object…

    matrixise authored and JulienPalard committed Oct 13, 2018
    …_type (GH-9827)
  5. bpo-34783: Disable test_nonexisting_script for macOS framework builds (

    ned-deily committed Oct 13, 2018
    With macOS framework builds, test case test_nonexisting_script in
    test_nonexisting_script fails because the test case assumes that
    the file name in sys.executable will appear in the error message.
    For macOS framework builds, sys.executable is the file name of the
    stub launcher and its file name bears no relationship to the file
    name of the actual python executable.  For now, skip the test in
    this case.
Commits on Oct 12, 2018
  1. Pin again sphinx version as stated in the comment. (GH-9824)

    JulienPalard committed Oct 12, 2018
  2. bpo-23831: Add moveto method to the tkinter.Canvas widget. (GH-9768)

    j4321 authored and serhiy-storchaka committed Oct 12, 2018
  3. bpo-11233: Create availability directive for documentation (GH-9692)

    2 people authored and vstinner committed Oct 12, 2018
    Replace "Availability: xxx" with ".. availability:: xxx" in the doc.
    Original patch by Georg Brandl.
    Co-Authored-By: Georg Brandl <>
  4. bpo-34900: Make TestCase.debug() work with subtests (GH-9707)

    nicoddemus authored and berkerpeksag committed Oct 12, 2018
  5. bpo-34203: FAQ now recommends python 3.x over 2.x (GH-9796)

    augustogoulart authored and taleinat committed Oct 12, 2018
  6. bpo-31516: Skip test_main_thread_during_shutdown() with COUNT_ALLOCS …

    ZackerySpytz authored and serhiy-storchaka committed Oct 12, 2018
    …builds. (GH-8052)