Skip to content

Commits on Apr 22, 2022

  1. gh-91217: deprecate-sndhdr (#91806)

    Also inline necessary functionality from `sndhdr` into `email.mime.audio` for `MIMEAudio`.
    
    Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
    brettcannon and hugovk committed Apr 22, 2022
  2. bpo-46720: Add support for path-like objects to multiprocessing.set_e…

    …xecutable for Windows (GH-31279)
    
    This bring the API to be on a par with Unix-like systems.
    maggyero committed Apr 22, 2022
  3. gh-91575: Add a script for generating data for case-insensitive match…

    …ing in re (GH-91660)
    
    Also test that all extra cases are in BMP.
    serhiy-storchaka committed Apr 22, 2022
  4. gh-91700: Validate the group number in conditional expression in RE (G…

    …H-91702)
    
    In expression (?(group)...) an appropriate re.error is now
    raised if the group number refers to not defined group.
    
    Previously it raised RuntimeError: invalid SRE code.
    serhiy-storchaka committed Apr 22, 2022
  5. gh-90568: Fix exception type for \N with a named sequence in RE (GH-9…

    …1665)
    
    re.error is now raised instead of TypeError.
    serhiy-storchaka committed Apr 22, 2022
  6. gh-89279: In ceval.c, redefine some macros for speed (#32387)

    Macros Py_DECREF, Py_XDECREF, Py_IS_TYPE, _Py_atomic_load_32bit_impl
    and _Py_DECREF_SPECIALIZED are redefined as macros
    that completely replace the inline functions of the same name.
    These three came out in the top four of functions that (in MSVC)
    somehow weren't inlined.
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
    3 people committed Apr 22, 2022
  7. gh-80527: Deprecate PEP 623 Unicode functions (#91801)

    Deprecate functions:
    
    * PyUnicode_AS_DATA()
    * PyUnicode_AS_UNICODE()
    * PyUnicode_GET_DATA_SIZE()
    * PyUnicode_GET_SIZE()
    
    Previously, these functions were macros and so it wasn't possible to
    decorate them with Py_DEPRECATED().
    vstinner committed Apr 22, 2022
  8. gh-91291: Accept attributes as keyword arguments in decimal.localcont…

    …ext (#32242)
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    dignissimus and JelleZijlstra committed Apr 22, 2022
  9. gh-69093: Add indexing and slicing support to sqlite3.Blob (#91599)

    Authored-by: Aviv Palivoda <palaviv@gmail.com>
    Co-authored-by: Erlend E. Aasland <erlend.aasland@innova.no>
    erlend-aasland committed Apr 22, 2022

Commits on Apr 21, 2022

  1. gh-89373: _Py_Dealloc() checks tp_dealloc exception (#32357)

    If Python is built in debug mode, _Py_Dealloc() now ensures that the
    tp_dealloc function leaves the current exception unchanged.
    vstinner committed Apr 21, 2022
  2. gh-91768: C API no longer use "const PyObject*" type (#91769)

    Py_REFCNT(), Py_TYPE(), Py_SIZE() and Py_IS_TYPE() functions argument
    type is now "PyObject*", rather than "const PyObject*".
    
    * Replace also "const PyObject*" with "PyObject*" in functions:
    
      * _Py_strhex_impl()
      * _Py_strhex_with_sep()
      * _Py_strhex_bytes_with_sep()
    
    * Remove _PyObject_CAST_CONST() and _PyVarObject_CAST_CONST() macros.
    * Py_IS_TYPE() can now use Py_TYPE() in its implementation.
    vstinner committed Apr 21, 2022
  3. GH-88116: Use a compact format to represent end line and column offse…

    …ts. (GH-91666)
    
    * Stores all location info in linetable to conform to PEP 626.
    
    * Remove column table from code objects.
    
    * Remove end-line table from code objects.
    
    * Document new location table format
    markshannon committed Apr 21, 2022
  4. gh-90623: signal.raise_signal() calls PyErr_CheckSignals() (#91756)

    signal.raise_signal() and os.kill() now call PyErr_CheckSignals() to
    check immediately for pending signals.
    vstinner committed Apr 21, 2022
  5. Revert "gh-85567: Register a cleanup function to close files for File…

    …Type objects in argparse (#32257)" (#91771)
    
    This reverts commit 328dbc0.
    vstinner committed Apr 21, 2022

Commits on Apr 19, 2022

  1. bpo-46075: Store localhost cookies in CookieJar (#30108)

    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    keddad and JelleZijlstra committed Apr 19, 2022
  2. gh-91616: re module, fix .fullmatch() mismatch when using Atomic Grou…

    …ping or Possessive Quantifiers (GH-91681)
    
    These jumps should use DO_JUMP0() instead of DO_JUMP():
    - JUMP_POSS_REPEAT_1
    - JUMP_POSS_REPEAT_2
    - JUMP_ATOMIC_GROUP
    animalize committed Apr 19, 2022
  3. gh-91231: Add shutdown_timeout to multiprocessing BaseManager (#32112)

    Add an optional keyword 'shutdown_timeout' parameter to the
    multiprocessing.BaseManager constructor. Kill the process if
    terminate() takes longer than the timeout.
    
    Multiprocessing tests pass test.support.SHORT_TIMEOUT
    to BaseManager.shutdown_timeout.
    vstinner committed Apr 19, 2022
Older