Skip to content
Permalink
master

Commits on Nov 1, 2020

  1. tempfile: Use random.choises() instead of choise() (GH-23068)

    methane committed Nov 1, 2020
  2. bpo-29566: binhex.binhex now consitently writes MacOS 9 line endings. (

    …GH-23059)
    
    [bpo-29566]() notes that binhex.binhex uses inconsistent line endings (both Unix and MacOS9 line endings are used). This PR changes this to use the MacOS9 line endings everywhere.
    ronaldoussoren committed Nov 1, 2020
  3. bpo-42146: Unify cleanup in subprocess_fork_exec() (GH-22970)

    * bpo-42146: Unify cleanup in subprocess_fork_exec()
    
    Also ignore errors from _enable_gc():
    * They are always suppressed by the current code due to a bug.
    * _enable_gc() is only used if `preexec_fn != None`, which is unsafe.
    * We don't have a good way to handle errors in case we successfully
      created a child process.
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    izbyshev and gpshead committed Nov 1, 2020

Commits on Oct 31, 2020

  1. bpo-42218: Correctly handle errors in left-recursive rules (GH-23065)

    Left-recursive rules need to check for errors explicitly, since
    even if the rule returns NULL, the parsing might continue and lead
    to long-distance failures.
    
    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
    lysnikolaou and pablogsal committed Oct 31, 2020
  2. bpo-42198: Improve consistency of Union docs (GH-23029)

    No backport is required since union is only in 3.10.
    
    This addresses "3. Consistency nitpicks for Union's docs" in the bpo.
    
    Please skip news. Thank you.
    Fidget-Spinner committed Oct 31, 2020
  3. Revert "bpo-42160: tempfile: Reduce overhead of pid check. (GH-22997)"

    `_RandomNameSequence` is not true singleton so using `os.register_at_fork` doesn't make sense unlike `random._inst`.
    
    This reverts commit 8e409ce.
    methane committed Oct 31, 2020
  4. bpo-42208: Add _locale._get_locale_encoding() (GH-23052)

    * Add a new _locale._get_locale_encoding() function to get the
      current locale encoding.
    * Modify locale.getpreferredencoding() to use it.
    * Remove the _bootlocale module.
    vstinner committed Oct 31, 2020
  5. bpo-42208: Add _Py_GetLocaleEncoding() (GH-23050)

    _io.TextIOWrapper no longer calls getpreferredencoding(False) of
    _bootlocale to get the locale encoding, but calls
    _Py_GetLocaleEncoding() instead.
    
    Add config_get_fs_encoding() sub-function. Reorganize also
    config_get_locale_encoding() code.
    vstinner committed Oct 31, 2020

Commits on Oct 30, 2020

  1. bpo-42214: Fix check for NOTEQUAL token in the PEG parser for the bar…

    …ry_as_flufl rule (GH-23048)
    pablogsal committed Oct 30, 2020
  2. GitHub Action: Add gdb to posix dependencies (GH-23043)

    Sort also dependencies and remove duplicates (liblzma-dev).
    vstinner committed Oct 30, 2020
  3. bpo-42208: Call GC collect earlier in PyInterpreterState_Clear() (GH-…

    …23044)
    
    The last GC collection is now done before clearing builtins and sys
    dictionaries. Add also assertions to ensure that gc.collect() is no
    longer called after _PyGC_Fini().
    
    Pass also the tstate to PyInterpreterState_Clear() to pass the
    correct tstate to _PyGC_CollectNoFail() and _PyGC_Fini().
    vstinner committed Oct 30, 2020
  4. bpo-36876: Small adjustments to the C-analyzer tool. (GH-23045)

    This is a little bit of clean-up, small fixes, and additional helpers prior to building an updated & accurate list of globals to eliminate.
    ericsnowcurrently committed Oct 30, 2020
  5. bpo-42208: Fix test_gdb for gc_collect_main() name (GH-23041)

    The gcmodule.c collect() function was renamed to gc_collect_main():
    update gdb/libpython.py (python-gdb.py).
    vstinner committed Oct 30, 2020
  6. bpo-42208: Move _PyImport_Cleanup() to pylifecycle.c (GH-23040)

    Move _PyImport_Cleanup() to pylifecycle.c, rename it to
    finalize_modules(), split it (200 lines) into many smaller
    sub-functions and cleanup the code.
    vstinner committed Oct 30, 2020
  7. bpo-42208: Pass tstate to _PyGC_CollectNoFail() (GH-23038)

    Move private _PyGC_CollectNoFail() to the internal C API.
    
    Remove the private _PyGC_CollectIfEnabled() which was just an alias
    to the public PyGC_Collect() function since Python 3.8.
    
    Rename functions:
    
    * collect() => gc_collect_main()
    * collect_with_callback() => gc_collect_with_callback()
    * collect_generations() => gc_collect_generations()
    vstinner committed Oct 30, 2020
  8. DOC: attribute PyPy for the idea behind LOAD_ATTR cache (GH-23036)

    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
    mattip and pablogsal committed Oct 30, 2020
  9. bpo-42206: Propagate and raise errors from PyAST_Validate in the pars…

    …er (GH-23035)
    isidentical committed Oct 30, 2020
  10. bpo-42172: Correct typo for test_socket.py (GH-23013)

    adkhunt committed Oct 30, 2020
  11. bpo-42160: tempfile: Reduce overhead of pid check. (GH-22997)

    The _RandomSequence class in tempfile used to check the current pid every time its rng property was used.
    This commit replaces this code with `os.register_at_fork` to reduce the overhead.
    Deric-W committed Oct 30, 2020
  12. bpo-42198: Link to GenericAlias in typing and expressions (GH-23030)

    Follow up to 7cdf30f and 4173320. This addresses the point "1. Update links in typing, subscription and union to point to GenericAlias." in the bpo for this PR.
    Fidget-Spinner committed Oct 30, 2020

Commits on Oct 29, 2020

  1. bpo-42061: Document __format__ for IP addresses (GH-23018)

    Automerge-Triggered-By: GH:ericvsmith
    John-Ted committed Oct 29, 2020
  2. bpo-42029: Remove IRIX code (GH-23023)

    IRIX code was slowy removed in Python 2.4 (--with-sgi-dl), Python 3.3
    (Irix threads), and Python 3.7.
    vstinner committed Oct 29, 2020
  3. bpo-42143: Ensure PyFunction_NewWithQualName() can't fail after creat…

    …ing the func object (GH-22953)
    
    func_dealloc() does not handle partially-created objects. Best not to give it any.
    Jongy committed Oct 29, 2020
  4. bpo-34204: Use pickle.DEFAULT_PROTOCOL in shelve (GH-19639)

    Use pickle.DEFAULT_PROTOCOL (currently 5) in shelve instead of a
    hardcoded 3.
    ZackerySpytz committed Oct 29, 2020

Commits on Oct 27, 2020

  1. bpo-41805: Documentation for PEP 585 (GH-22615)

    Fidget-Spinner committed Oct 27, 2020
  2. bpo-42161: Micro-optimize _collections._count_elements() (GH-23008)

    Move the _PyLong_GetOne() call outside the fast-path loop.
    vstinner committed Oct 27, 2020
  3. bpo-42161: Remove private _PyLong_Zero and _PyLong_One (GH-23003)

    Use PyLong_FromLong(0) and PyLong_FromLong(1) of the public C API
    instead. For Python internals, _PyLong_GetZero() and _PyLong_GetOne()
    of pycore_long.h can be used.
    vstinner committed Oct 27, 2020
  4. bpo-42099: Fix reference to ob_type in unionobject.c and ceval (GH-22829

    )
    
    * Use Py_TYPE() rather than o->ob_type.
    nascheme committed Oct 27, 2020
  5. bpo-6761: Enhance __call__ documentation (GH-7987)

    andresdelfino committed Oct 27, 2020
Older
You can’t perform that action at this time.