Sitelet https://web.archive.org/web/20200413183459im_/https://github.com/python/cpython/commits/master
Skip to content
Permalink
Branch: master
Commits on Apr 13, 2020
  1. bpo-40241: Add pycore_interp.h header (GH-19499)

    vstinner committed Apr 13, 2020
    Move PyInterpreterState and related functions to a new internal
    pycore_interp.h header file.
  2. bpo-40268: Add pycore_runtime.h header file (GH-19493)

    vstinner committed Apr 13, 2020
    Move PyRuntimeState from pycore_pystate.h to pycore_runtime.h.
    
    Remove _PyGILState_check_enabled macro: access directly
    _PyRuntime.gilstate.check_enabled.
  3. bpo-40241: Add pycore_gc.h header file (GH-19494)

    vstinner committed Apr 13, 2020
    Move the PyGC_Head structure and the following private macros to the
    internal C API:
    
    * _PyGCHead_FINALIZED()
    * _PyGCHead_NEXT()
    * _PyGCHead_PREV()
    * _PyGCHead_SET_FINALIZED()
    * _PyGCHead_SET_NEXT()
    * _PyGCHead_SET_PREV()
    * _PyGC_FINALIZED()
    * _PyGC_PREV_MASK
    * _PyGC_PREV_MASK_COLLECTING
    * _PyGC_PREV_MASK_FINALIZED
    * _PyGC_PREV_SHIFT
    * _PyGC_SET_FINALIZED()
    * _PyObject_GC_IS_TRACKED()
    * _PyObject_GC_MAY_BE_TRACKED()
    * _Py_AS_GC(o)
    
    Keep the private _PyGC_FINALIZED() macro in the public C API for
    backward compatibility with Python 3.8: make it an alias to the new
    PyObject_GC_IsFinalized() function.
    
    Move the SIZEOF_PYGC_HEAD constant from _testcapi module to
    _testinternalcapi module.
  4. Improved documentation for `BUILD_CONST_KEY_MAP` (GH-19454)

    laike9m committed Apr 13, 2020
  5. Add double quote cases to invalid prefix tests (GH-19489)

    pablogsal committed Apr 13, 2020
  6. bpo-40268: Add _PyInterpreterState_GetConfig() (GH-19492)

    vstinner committed Apr 13, 2020
    Don't access PyInterpreterState.config member directly anymore, but
    use new functions:
    
    * _PyInterpreterState_GetConfig()
    * _PyInterpreterState_SetConfig()
    * _Py_GetConfig()
Commits on Apr 12, 2020
  1. bpo-40234: Revert "bpo-37266: Daemon threads are now denied in subint…

    vstinner committed Apr 12, 2020
    …erpreters (GH-14049)" (GH-19456)
    
    This reverts commit 066e5b1.
  2. bpo-31758: Prevent crashes when using an uninitialized _elementtree.X…

    orenmn committed Apr 12, 2020
    …MLParser object (GH-3997)
  3. bpo-39011: Preserve line endings within ElementTree attributes (GH-18468

    mefistotelis committed Apr 12, 2020
    )
    
    * bpo-39011: Preserve line endings within attributes
    
    Line endings within attributes were previously normalized to "\n" in Py3.7/3.8.
    This patch removes that normalization, as line endings which were
    replaced by entity numbers should be preserved in original form.
  4. bpo-39943: Add the const qualifier to pointers on non-mutable PyBytes…

    serhiy-storchaka committed Apr 12, 2020
    … data. (GH-19472)
Commits on Apr 11, 2020
  1. closes bpo-39953: Update OpenSSL error codes table. (GH-19082)

    benjaminp committed Apr 11, 2020
    I updated the error codes using the OpenSSL 1.1.1f source tree.
  2. bpo-40126: Fix reverting multiple patches in unittest.mock. (GH-19351)

    serhiy-storchaka committed Apr 11, 2020
    Patcher's __exit__() is now never called if its __enter__() is failed.
    Returning true from __exit__() silences now the exception.
  3. bpo-39943: Add the const qualifier to pointers on non-mutable PyUnico…

    serhiy-storchaka committed Apr 11, 2020
    …de data. (GH-19345)
  4. bpo-38501: Add a warning section to multiprocessing.Pool docs about r…

    pablogsal committed Apr 11, 2020
    …esource managing (GH-19466)
  5. bpo-40241: Add PyObject_GC_IsTracked and PyObject_GC_IsFinalized to t…

    pablogsal committed Apr 11, 2020
    …he public C-API (GH-19461)
    
    Add the functions PyObject_GC_IsTracked and PyObject_GC_IsFinalized to the public API to allow to query if Python objects are being currently tracked or have been already finalized by the garbage collector respectively.
Commits on Apr 10, 2020
  1. bpo-39481: PEP 585 for a variety of modules (GH-19423)

    isidentical committed Apr 10, 2020
    - concurrent.futures
    - ctypes
    - http.cookies
    - multiprocessing
    - queue
    - tempfile
    - unittest.case
    - urllib.parse
  2. bpo-39481: PEP 585 for difflib, filecmp, fileinput (#19422)

    ethanhs committed Apr 10, 2020
  3. bpo-39481: PEP 585 for ipaddress.py (GH-19418)

    isidentical committed Apr 10, 2020
  4. Generic itertools.chain (GH-19417)

    ethanhs committed Apr 10, 2020
  5. bpo-39943: Keep constness of pointer objects. (19405)

    petdance and benjaminp committed Apr 10, 2020
    * Keep constness of pointer objects.
    
    Also moved an auto variable that got consted into its innermost necessary scope.
    
    * move def
    
    Co-authored-by: Benjamin Peterson <benjamin@python.org>
Commits on Apr 9, 2020
  1. bpo-40077: Remove redundant cast in json module (GH-19438)

    shihai1991 committed Apr 9, 2020
  2. bpo-25780: Expose CAN_RAW_JOIN_FILTERS in the socket module (GH-19190)

    ZackerySpytz and rumpelsepp committed Apr 9, 2020
    Co-Authored-By: Stefan Tatschner <stefan@rumpelsepp.org>
Commits on Apr 8, 2020
  1. bpo-40082: trip_signal() uses the main interpreter (GH-19441)

    vstinner committed Apr 8, 2020
    Fix the signal handler: it now always uses the main interpreter,
    rather than trying to get the current Python thread state.
    
    The following function now accepts an interpreter, instead of a
    Python thread state:
    
    * _PyEval_SignalReceived()
    * _Py_ThreadCanHandleSignals()
    * _PyEval_AddPendingCall()
    * COMPUTE_EVAL_BREAKER()
    * SET_GIL_DROP_REQUEST(), RESET_GIL_DROP_REQUEST()
    * SIGNAL_PENDING_CALLS(), UNSIGNAL_PENDING_CALLS()
    * SIGNAL_PENDING_SIGNALS(), UNSIGNAL_PENDING_SIGNALS()
    * SIGNAL_ASYNC_EXC(), UNSIGNAL_ASYNC_EXC()
    
    Py_AddPendingCall() now uses the main interpreter if it fails to the
    current Python thread state.
    
    Convert _PyThreadState_GET() and PyInterpreterState_GET_UNSAFE()
    macros to static inline functions.
  2. bpo-37127: Remove _pending_calls.finishing (GH-19439)

    vstinner committed Apr 8, 2020
  3. bpo-40226: PyInterpreterState_Delete() deletes pending calls (GH-19436)

    vstinner committed Apr 8, 2020
    PyInterpreterState_New() is now responsible to create pending calls,
    PyInterpreterState_Delete() now deletes pending calls.
    
    * Rename _PyEval_InitThreads() to _PyEval_InitGIL() and rename
      _PyEval_InitGIL() to _PyEval_FiniGIL().
    * _PyEval_InitState() and PyEval_FiniState() now create and delete
      pending calls. _PyEval_InitState() now returns -1 on memory
      allocation failure.
    * Add init_interp_create_gil() helper function: code shared by
      Py_NewInterpreter() and Py_InitializeFromConfig().
    * init_interp_create_gil() now also calls _PyEval_FiniGIL(),
      _PyEval_InitGIL() and _PyGILState_Init() in subinterpreters, but
      these functions now do nothing when called from a subinterpreter.
  4. Remove extraneous ')' in abstract.h (GH-19146)

    Marethyu12 committed Apr 8, 2020
  5. bpo-40187: Refactor typing.TypedDict. (GH-19372)

    serhiy-storchaka committed Apr 8, 2020
  6. bpo-40185: Refactor typing.NamedTuple (GH-19371)

    serhiy-storchaka committed Apr 8, 2020
  7. bpo-40170: Remove PyIndex_Check() macro (GH-19428)

    vstinner committed Apr 8, 2020
    Always declare PyIndex_Check() as an opaque function to hide
    implementation details: remove PyIndex_Check() macro. The macro
    accessed directly the PyTypeObject.tp_as_number member.
  8. bpo-40170: Add _PyIndex_Check() internal function (GH-19426)

    vstinner committed Apr 8, 2020
    Add _PyIndex_Check() function to the internal C API: fast inlined
    verson of PyIndex_Check().
    
    Add Include/internal/pycore_abstract.h header file.
    
    Replace PyIndex_Check() with _PyIndex_Check() in C files of Objects
    and Python subdirectories.
Older
You can’t perform that action at this time.