Visitar URL original
Commits · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20200524225626/https://github.com/python/cpython/commits/master
Skip to content
Permalink
Branch: master
Commits on May 24, 2020
  1. bpo-17050: Remove documentation on argparse.REMAINDER (GH-18661)

    corollari committed May 24, 2020
    Closes [Issue 17050]() by removing argparse.REMAINDER from the documentation, as discussed on the issue.
    
    Automerge-Triggered-By: @rhettinger
  2. bpo-40443: Remove unused imports in the zoneinfo (GH-20354)

    corona10 committed May 24, 2020
  3. bpo-37309: Update IDLE NEWS.txt (GH-20356)

    terryjreedy committed May 24, 2020
  4. bpo-40723: Make IDLE autocomplete test run without __main__.__file__ (G…

    DahlitzFlorian committed May 24, 2020
    …H-20311)
    
    This was the only failure running unittest.main(test.test_idle) after imports.
  5. Remove spurious NULL in descrobject.c (GH-20344)

    shihai1991 and hai shi committed May 24, 2020
    Co-authored-by: hai shi <shihai1991@126.com>
Commits on May 23, 2020
  1. bpo-40405: Fix asyncio.as_completed docs (GH-19753)

    4 people committed May 23, 2020
    * Fix as_completed docs to correctly state the function return value.
    * Also, improves the general wording of the as_completed documentation.
    
    Co-Authored-By: Rémi Lapeyre <remi.lapeyre@henki.fr>
    Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
    Co-Authored-By: Yury Selivanov <yury@edgedb.com>
  2. bpo-40439: Update broken link in lexical analysis docs (GH-20184)

    Akarys42 committed May 23, 2020
    Automerge-Triggered-By: @csabella
  3. [doc] Add missing space in urllib.request.rst (GH-19860)

    imomaliev committed May 23, 2020
    This is just a typo fix, should I still provide news file?
  4. Cosmetic smtplib changes (GH-8718)

    scop committed May 23, 2020
    Some cosmetic smtplib changes here. Let me know if you'd like a bpo/news entry or splitting this PR into two.
    
    Automerge-Triggered-By: @maxking
  5. bpo-40552 Add 'users' variable in code sample (tutorial 4.2). (GH-19992)

    awecx and blurb-it committed May 23, 2020
    * Add 'users' variable in code sample.
    
    * 📜🤖 Added by blurb_it.
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Commits on May 22, 2020
  1. bpo-40679: Use the function's qualname in certain TypeErrors (GH-20236)

    sweeneyde committed May 22, 2020
    Patch by Dennis Sweeney.
  2. bpo-40696: Fix a hang that can arise after gen.throw() (GH-20287)

    cjerdonek committed May 22, 2020
    This updates _PyErr_ChainStackItem() to use _PyErr_SetObject()
    instead of _PyErr_ChainExceptions(). This prevents a hang in
    certain circumstances because _PyErr_SetObject() performs checks
    to prevent cycles in the exception context chain while
    _PyErr_ChainExceptions() doesn't.
  3. bpo-9216: hashlib usedforsecurity fixes (GH-20258)

    tiran committed May 22, 2020
    func:`hashlib.new` passed ``usedforsecurity`` to OpenSSL EVP constructor
    ``_hashlib.new()``. test_hashlib and test_smtplib handle strict security
    policy better.
    
    Signed-off-by: Christian Heimes <christian@python.org>
    
    Automerge-Triggered-By: @tiran
  4. bpo-40730: Remove redundant 'to' (GH-20316)

    DahlitzFlorian committed May 22, 2020
    @ericvsmith I guess it is correct to merge it into master and not 3.9 directly?
    
    Automerge-Triggered-By: @ericvsmith
  5. bpo-40630: Add tracemalloc.reset_peak (GH-20102)

    huonw committed May 22, 2020
    The reset_peak function sets the peak memory size to the current size,
    representing a resetting of that metric. This allows for recording the
    peak of specific sections of code, ignoring other code that may have
    had a higher peak (since the most recent `tracemalloc.start()` or
    tracemalloc.clear_traces()` call).
  6. Restore missing column of digits (GH-20313)

    rhettinger committed May 22, 2020
  7. Fix debug output in PEG parser generator (GH-20308)

    pablogsal committed May 22, 2020
  8. bpo-40334: Produce better error messages for non-parenthesized genexps (

    lysnikolaou committed May 22, 2020
    GH-20153)
    
    The error message, generated for a non-parenthesized generator expression
    in function calls, was still the generic `invalid syntax`, when the generator expression wasn't appearing as the first argument in the call. With this patch, even on input like `f(a, b, c for c in d, e)`, the correct error message gets produced.
Commits on May 21, 2020
  1. bpo-40715: Reject dict unpacking on dict comprehensions (GH-20292)

    3 people committed May 21, 2020
    Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
    Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
  2. Fix typing problems reported by mypy in pegen (GH-20297)

    pablogsal committed May 21, 2020
  3. Reword aware/naive introduction sentence (GH-20175)

    deronnax committed May 21, 2020
    This is more informative and avoids the question of whether the period should go inside or outside the quotation marks.
    
    See also GH-20007.
  4. bpo-40334: Correctly generate C parser when assigned var is None (GH-…

    isidentical committed May 21, 2020
    …20296)
    
    When there are 2 negative lookaheads in the same rule, let's say `!"(" blabla "," !")"`, there will the 2 `FunctionCall`'s where assigned value is None. Currently when the `add_var` is called
    the first one will be ignored but when the second lookahead's var is sent to dedupe it
    will be returned as `None_1` and this won't be ignored by the declaration generator in the `visit_Alt`. This patch adds an explicit check to `add_var` to distinguish whether if there is a variable or not.
  5. bpo-40714: Remove compile warning from _zoneinfo.c (GH-20291)

    corona10 committed May 21, 2020
  6. bpo-32309: Add support for contextvars in asyncio.to_thread() (GH-20278)

    aeros committed May 21, 2020
    Allows contextvars from the main thread to be accessed in the separate thread used in `asyncio.to_thread()`. See the [discussion](#20143 (comment)) in GH-20143 for context.
    
    Automerge-Triggered-By: @aeros
  7. Use f-strings in argparse HOWTO (GH-20070)

    remilapeyre committed May 21, 2020
Older
You can’t perform that action at this time.