Skip to content
Permalink
Branch: master
Commits on Feb 21, 2020
  1. bpo-39576: docs: set context for decimal arbitrary precision arithmet…

    skrah committed Feb 21, 2020
    …ic (#18594)
  2. bpo-35950: Raise UnsupportedOperation in BufferedReader.truncate() (G…

    berkerpeksag committed Feb 21, 2020
    …H-18586)
    
    The truncate() method of io.BufferedReader() should raise
    UnsupportedOperation when it is called on a read-only
    io.BufferedReader() instance.
    
    
    
    
    
    https://bugs.python.org/issue35950
    
    
    
    Automerge-Triggered-By: @methane
  3. fix(doc): set correct RST syntax for c:function (GH-18589)

    jd committed Feb 21, 2020
    The current content is not rendered since the syntax is not correct.
  4. Reuse identifier of PREDICT macros as PREDICT_ID (GH-17155)

    deiuch committed Feb 21, 2020
    In function `_PyEval_EvalFrameDefault`, macros PREDICT and PREDICTED use the same identifier creation scheme, which may be shared between them, reducing code repetition, and do ensure that the same identifier is generated.
  5. bpo-38657: Clarify numeric padding behaviour in string formatting (GH…

    JamoBox committed Feb 21, 2020
    …-17036)
    
    Make the definition of the width more explicit that it includes any
    extra signs added by other options.
    
    
    https://bugs.python.org/issue38657
    
    
    
    Automerge-Triggered-By: @Mariatta
Commits on Feb 20, 2020
  1. bpo-39184: Fix incorrect return value (GH-18580)

    zooba committed Feb 20, 2020
  2. Update runall.bat to the latest Windows build system. (#18571)

    skrah committed Feb 20, 2020
  3. Valgrind no longer supports --db-attach=yes. (#18568)

    skrah committed Feb 20, 2020
Commits on Feb 19, 2020
  1. bpo-39479:Add math.lcm() function: Least Common Multiple (#18547)

    ananthan-123 and blurb-it committed Feb 19, 2020
    * Update math.rst
    
    * Update math.rst
    
    * updated whats new
    
    * Update test_math.py
    
    * Update mathmodule.c
    
    * Update mathmodule.c.h
    
    * Update ACKS
    
    * 📜🤖 Added by blurb_it.
    
    * Update 3.9.rst
    
    * Update 2020-02-18-12-37-16.bpo-39479.j3UcCq.rst
    
    * Update math.rst
    
    * Update 2020-02-18-12-37-16.bpo-39479.j3UcCq.rst
    
    * Update test_math.py
    
    * Update ACKS
    
    * Update mathmodule.c.h
    
    * Update mathmodule.c
    
    * Update mathmodule.c.h
    
    * Update mathmodule.c.h
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
  2. Revert "bpo-38691 Added a switch to ignore PYTHONCASEOK when -E or -I…

    vstinner committed Feb 19, 2020
    … flags passed (#18314)" (GH-18553)
    
    This reverts commit d83b660.
  3. bpo-39572: Document ’total’ flag of TypedDict (GH-18554)

    ananthan-123 committed Feb 19, 2020
Commits on Feb 18, 2020
  1. Include subsections in TOC for PDF version of docs. (GH-9629)

    csabella committed Feb 18, 2020
  2. bpo-39674: Revert "bpo-25988: Do not expose abstract collection class…

    vstinner committed Feb 18, 2020
    …es in the collections module. (GH-10596)" (GH-18545)
    
    This reverts commit ef092fe.
    
    Update collections __getattr__() and documentation to defer aliases
    removal to Python 3.10.
  3. bpo-37207: Use vectorcall for range() (GH-18464)

    encukou committed Feb 18, 2020
    This continues the `range()` part of #13930. The complete pull request is stalled on discussions around dicts, but `range()` should not be controversial. (And I plan to open PRs for other parts if this is merged.)
    On top of Mark's change, I unified `range_new` and `range_vectorcall`, which had a lot of duplicate code.
    
    
    https://bugs.python.org/issue37207
  4. bpo-36347: stop using RESTRICTED constants (GH-12684)

    jdemeyer committed Feb 18, 2020
    The constants `RESTRICTED` and `PY_WRITE_RESTRICTED` no longer have a meaning in Python 3. Therefore, CPython should not use them.
    
    CC @matrixise 
    
    
    https://bugs.python.org/issue36347
  5. bpo-39546: argparse: Honor allow_abbrev=False for specified prefix_ch…

    kyleam committed Feb 18, 2020
    …ars (GH-18337)
    
    When `allow_abbrev` was first added, disabling the abbreviation of
    long options broke the grouping of short flags ([bpo-26967](https://bugs.python.org/issue26967)).  As a fix,
    b1e4d1b (contained in v3.8) ignores `allow_abbrev=False` for a
    given argument string if the string does _not_ start with "--"
    (i.e. it doesn't look like a long option).
    
    This fix, however, doesn't take into account that long options can
    start with alternative characters specified via `prefix_chars`,
    introducing a regression: `allow_abbrev=False` has no effect on long
    options that start with an alternative prefix character.
    
    The most minimal fix would be to replace the "starts with --" check
    with a "starts with two prefix_chars characters".  But
    `_get_option_tuples` already distinguishes between long and short
    options, so let's instead piggyback off of that check by moving the
    `allow_abbrev` condition into `_get_option_tuples`.
    
    
    
    
    
    https://bugs.python.org/issue39546
  6. bpo-39663: IDLE: Add additional tests for pyparse (GH-18536)

    csabella and terryjreedy committed Feb 18, 2020
    Test when find_good_parse_start should return 0.
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Commits on Feb 17, 2020
  1. bpo-1635741: Port _abc extension to multiphase initialization (PEP 48…

    shihai1991 committed Feb 17, 2020
    …9) (GH-18030)
  2. bpo-1635741: Port _contextvars module to multiphase initialization (P…

    shihai1991 committed Feb 17, 2020
    …EP 489) (GH-18374)
  3. bpo-39500: Fix compile warnings in unicodeobject.c (GH-18519)

    shihai1991 committed Feb 17, 2020
  4. bpo-36465: Update doc of init_config.rst (GH-18520)

    shihai1991 committed Feb 17, 2020
  5. bpo-1635741: Port _crypt extension module to multiphase initializatio…

    shihai1991 committed Feb 17, 2020
    …n (PEP 489) (GH-18404)
  6. bpo-38691 Added a switch to ignore PYTHONCASEOK when -E or -I flags p…

    3 people committed Feb 17, 2020
    …assed (#18314)
    
    * Hard reset + cherry piciking the changes.
    
    * 📜🤖 Added by blurb_it.
    
    * Added @vstinner News
    
    * Update Misc/NEWS.d/next/Library/2020-02-11-13-01-38.bpo-38691.oND8Sk.rst
    
    Co-Authored-By: Victor Stinner <vstinner@python.org>
    
    * Hard reset to master
    
    * Hard reset to master + latest changes
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
    Co-authored-by: Victor Stinner <vstinner@python.org>
Commits on Feb 16, 2020
  1. bpo-39104: Fix hanging ProcessPoolExecutor on shutdown nowait with pi…

    tomMoral committed Feb 16, 2020
    …ckling failure (GH-17670)
    
    As reported initially by @rad-pat in #6084, the following script causes a deadlock.
    
    ```
    from concurrent.futures import ProcessPoolExecutor
    
    
    class ObjectWithPickleError():
        """Triggers a RuntimeError when sending job to the workers"""
    
        def __reduce__(self):
            raise RuntimeError()
    
    
    if __name__ == "__main__":
        e = ProcessPoolExecutor()
        f = e.submit(id, ObjectWithPickleError())
        e.shutdown(wait=False)
        f.result()  # Deadlock on get
    ```
    
    This is caused by the fact that the main process is closing communication channels that might be necessary to the `queue_management_thread` later. To avoid this, this PR let the `queue_management_thread` manage all the closing.
    
    
    
    https://bugs.python.org/issue39104
    
    
    
    Automerge-Triggered-By: @pitrou
Commits on Feb 14, 2020
  1. bpo-12915: Add pkgutil.resolve_name (GH-18310)

    vsajip committed Feb 14, 2020
  2. bpo-39573: Update clinic to use Py_IS_TYPE() function (GH-18507)

    corona10 committed Feb 14, 2020
Older
You can’t perform that action at this time.