Skip to content
Permalink
master

Commits on Aug 5, 2020

  1. bpo-40989: Fix compiler warning in winreg.c (GH-21722)

    Explicitly cast PyHKEYObject* to PyObject* to call _PyObject_Init().
    vstinner committed Aug 5, 2020
  2. bpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)

    See PEP 623 for detail.
    methane committed Aug 5, 2020

Commits on Aug 4, 2020

  1. bpo-41463: Generate information about jumps from 'opcode.py' rather t…

    …han duplicating it in 'compile.c' (GH-21714)
    
    Generate information about jumps from 'opcode.py' rather than duplicate it in 'compile.c'
    markshannon committed Aug 4, 2020
  2. bpo-36982: Add support for extended color functions in ncurses 6.1 (G…

    …H-17536)
    
    Co-authored-by: Jeffrey Kintscher <websurfer@surf2c.net>
    hpjansson and websurfer5 committed Aug 4, 2020
  3. bpo-41431: Optimize dict_merge for copy (GH-21674)

    methane committed Aug 4, 2020
  4. bpo-41467: Fix asyncio recv_into() on Windows (GH-21720)

    On Windows, fix asyncio recv_into() return value when the socket/pipe
    is closed (BrokenPipeError): return 0 rather than an empty byte
    string (b'').
    vstinner committed Aug 4, 2020
  5. bpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721)

    incr cannot be larger than INT_MAX: downcast to int explicitly.
    vstinner committed Aug 4, 2020

Commits on Aug 3, 2020

  1. bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH…

    …-21718)
    
    regrtest_unraisable_hook() temporarily replaces sys.stderr with
    sys.__stderr__ to help to display errors when a test captures stderr.
    vstinner committed Aug 3, 2020
  2. A (very) slight speed improvement for iterating over bytes (#21705)

    My mentee @xvxvxvxvxv noticed that iterating over array.array is
    slightly faster than iterating over bytes.  Looking at the source I
    observed that arrayiter_next() calls `getitem(ao, it->index++)` wheras
    striter_next() uses the idiom (paraphrased)
    
        item = PyLong_FromLong(seq->ob_sval[it->it_index]);
        if (item != NULL)
            ++it->it_next;
        return item;
    
    I'm not 100% sure but I think that the second version has fewer
    opportunity for the CPU to overlap the `index++` operation with the
    rest of the code (which in both cases involves a call).  So here I am
    optimistically incrementing the index -- if the PyLong_FromLong() call
    fails, this will leave the iterator pointing at the next byte, but
    honestly I doubt that anyone would seriously consider resuming use of
    the iterator after that kind of failure (it would have to be a
    MemoryError).  And the author of arrayiter_next() made the same
    consideration (or never ever gave it a thought :-).
    
    With this, a loop like
    
        for _ in b: pass
    
    is now slightly *faster* than the same thing over an equivalent array,
    rather than slightly *slower* (in both cases a few percent).
    gvanrossum committed Aug 3, 2020
  3. bpo-41425: Make tkinter doc example runnable (GH-21706)

    Co-authored-by: Ankit Chandawala <achandaw@amazon.com>
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    3 people committed Aug 3, 2020

Commits on Aug 2, 2020

  1. bpo-40979: refactored typing.rst; (mostly) same content, new sub-sect…

    …ions and ordering (#21574)
    
    Also added PEP 585 deprecation notes.
    ramalho committed Aug 2, 2020
  2. random module: Convert a "while 1" to "while True (GH-21700)

    rhettinger committed Aug 2, 2020

Commits on Aug 1, 2020

Commits on Jul 31, 2020

Commits on Jul 30, 2020

  1. bpo-41323: Perform 'peephole' optimizations directly on the CFG. (GH-…

    …21517)
    
    * Move 'peephole' optimizations into compile.c and perform them directly on the CFG.
    markshannon committed Jul 30, 2020

Commits on Jul 29, 2020

  1. bpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677)

    Automerge-Triggered-By: @brettcannon
    foxyblue committed Jul 29, 2020
  2. closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH…

    …-21569)
    
    This consolidates the handling of my_fgets return values, so that interrupts are always handled, even if they come after EOF.
    
     I believe PyOS_StdioReadline is still buggy in that I/O errors will not result in a proper Python exception being set. However, that is a separate issue.
    benjaminp committed Jul 29, 2020

Commits on Jul 28, 2020

  1. bpo-41412 and bpo-40948: Windows installer updates (GH-21656)

    Prevent installation on Windows 8 and earlier.
    Download UCRT on demand when required (non-updated Windows 8.1 only)
    Add reference to py launcher to post-install message
    zooba committed Jul 28, 2020
  2. bpo-35328: Set VIRTUAL_ENV_PROMPT at venv activation (GH-21587)

    Co-Authored-By: Baptiste Darthenay <baptiste.darthenay@gmail.com>
    ZackerySpytz and batisteo committed Jul 28, 2020

Commits on Jul 27, 2020

  1. Validate the AST produced by the parser in debug mode (GH-21643)

    This will improve the debug experience if something fails in the produced AST. Previously, errors in the produced AST can be felt much later like in the garbage collector or the compiler, making debugging them much more difficult.
    pablogsal committed Jul 27, 2020
  2. bpo-41045: Document debug feature of f-strings ('=') (GH-21509)

    Co-Authored-By: Rishi <rishi93dev@gmail.com>
    
    Automerge-Triggered-By: @gvanrossum
    amaajemyfren committed Jul 27, 2020
  3. bpo-40939: Remove even more references to the old parser (GH-21642)

    Automerge-Triggered-By: @lysnikolaou
    lysnikolaou committed Jul 27, 2020
  4. bpo-40939: Use the new grammar for the grammar specification document…

    …ation (GH-19969)
    
    (We censor the heck out of actions and some other stuff using a custom "highlighter".)
    
    Co-authored-by: Guido van Rossum <guido@python.org>
    pablogsal and gvanrossum committed Jul 27, 2020
  5. bpo-41401: Fix test_fspath_support in test_io. (GH-21640)

    The error is exposed on non-UTF-8 locales.
    serhiy-storchaka committed Jul 27, 2020
Older
You can’t perform that action at this time.