Skip to content
Permalink
Branch: master
Commits on Feb 3, 2020
  1. bpo-38558: Link to further docs from walrus operator mention in tutor…

    adorilson committed Feb 3, 2020
    …ial (GH-16973)
  2. bpo-39542: Simplify _Py_NewReference() (GH-18332)

    vstinner committed Feb 3, 2020
    * Remove _Py_INC_REFTOTAL and _Py_DEC_REFTOTAL macros: modify
      directly _Py_RefTotal.
    * _Py_ForgetReference() is no longer defined if the Py_TRACE_REFS
      macro is not defined.
    * Remove _Py_NewReference() implementation from object.c:
      unify the two implementations in object.h inline function.
    * Fix Py_TRACE_REFS build: _Py_INC_TPALLOCS() macro has been removed.
  3. Fixes in sorting descriptions (GH-18317)

    pochmann committed Feb 3, 2020
    Improvements in listsort.txt and a comment in sortperf.py.
    
    Automerge-Triggered-By: @csabella
  4. bpo-39542: Move object.h debug functions to internal C API (GH-18331)

    vstinner committed Feb 3, 2020
    Move the following functions from the public C API to the internal C
    API:
    
    * _PyDebug_PrintTotalRefs(),
    * _Py_PrintReferenceAddresses()
    * _Py_PrintReferences()
  5. bpo-39489: Remove COUNT_ALLOCS special build (GH-18259)

    vstinner committed Feb 3, 2020
    Remove:
    
    * COUNT_ALLOCS macro
    * sys.getcounts() function
    * SHOW_ALLOC_COUNT code in listobject.c
    * SHOW_TRACK_COUNT code in tupleobject.c
    * PyConfig.show_alloc_count field
    * -X showalloccount command line option
    * @test.support.requires_type_collecting decorator
  6. bpo-36051: Fix compiler warning. (GH-18325)

    methane committed Feb 3, 2020
  7. bpo-39450 Stripped whitespace before parsing the docstring in TestCas…

    scirelli committed Feb 3, 2020
    …e.shortDescription (GH-18175)
Commits on Feb 2, 2020
  1. bpo-39492: Fix a reference cycle between reducer_override and a Pickl…

    pierreglaser committed Feb 2, 2020
    …er instance (GH-18266)
    
    This also needs a backport to 3.8
    
    
    https://bugs.python.org/issue39492
    
    
    
    Automerge-Triggered-By: @pitrou
  2. bpo-39349: Add *cancel_futures* to Executor.shutdown() (GH-18057)

    aeros committed Feb 2, 2020
  3. Fix 5-space indentation and trailing whitespace (GH-18311)

    mdickinson committed Feb 2, 2020
Commits on Feb 1, 2020
  1. fixes typos in http.client documentation (#18300)

    jameshcorbett committed Feb 1, 2020
  2. Update sum comment. (#18240)

    brandtbucher committed Feb 1, 2020
  3. bpo-39511: PyThreadState_Clear() calls on_delete (GH-18296)

    vstinner committed Feb 1, 2020
    PyThreadState.on_delete is a callback used to notify Python when a
    thread completes. _thread._set_sentinel() function creates a lock
    which is released when the thread completes. It sets on_delete
    callback to the internal release_sentinel() function. This lock is
    known as Threading._tstate_lock in the threading module.
    
    The release_sentinel() function uses the Python C API. The problem is
    that on_delete is called late in the Python finalization, when the C
    API is no longer fully working.
    
    The PyThreadState_Clear() function now calls the
    PyThreadState.on_delete callback. Previously, that happened in
    PyThreadState_Delete().
    
    The release_sentinel() function is now called when the C API is still
    fully working.
  4. bpo-39511: Fix multiprocessing semlock_acquire() (GH-18298)

    vstinner committed Feb 1, 2020
    The Python C API must not be used when the GIL is released: only
    access Py_None when the GIL is hold.
Commits on Jan 31, 2020
  1. bpo-37224: Improve test__xxsubinterpreters.DestroyTests (GH-18058)

    aeros committed Jan 31, 2020
    Adds an additional assertion check based on a race condition for `test__xxsubinterpreters.DestroyTests.test_still_running` discovered in the bpo issue.
    
    
    https://bugs.python.org/issue37224
  2. Doc: Fix s/pseudo random/pseudo-random/ (GH-18289)

    JulienPalard committed Jan 31, 2020
  3. bpo-38792: Remove IDLE shell calltip before new prompt. (#17150)

    3 people committed Jan 31, 2020
    Previously, a calltip might be left after SyntaxError, KeyboardInterrupt, or Shell Restart.
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Commits on Jan 30, 2020
  1. bpo-39487: Merge duplicated _Py_IDENTIFIER identifiers in C code (GH-…

    shihai1991 committed Jan 30, 2020
    …18254)
    
    Moving repetitive `_Py_IDENTIFIER` instances to a global location helps identify them more easily in regards to sub-interpreter support.
  2. bpo-39502: Skip test_zipfile.test_add_file_after_2107() on AIX (GH-18282

    vstinner committed Jan 30, 2020
    )
    
    Skip test_zipfile.test_add_file_after_2107() if time.localtime()
    fails with OverflowError. It is the case on AIX 6.1 for example.
  3. bpo-38631: Add _Py_NO_RETURN to functions calling Py_FatalError() (GH…

    vstinner committed Jan 30, 2020
    …-18278)
    
    Add _Py_NO_RETURN to functions calling Py_FatalError():
    
    * _PyObject_AssertFailed()
    * dummy_dealloc()
    * faulthandler_fatal_error_thread()
    * none_dealloc()
    * notimplemented_dealloc()
  4. bpo-38631: Replace Py_FatalError() with assert() in ceval.c (GH-18279)

    vstinner committed Jan 30, 2020
    Replace a few Py_FatalError() calls if tstate is NULL with
    assert(tstate != NULL) in ceval.c.
    
    PyEval_AcquireThread(), PyEval_ReleaseThread() and
    PyEval_RestoreThread() must never be called with a NULL tstate.
  5. bpo-38631: Avoid Py_FatalError() in unicodeobject.c (GH-18281)

    vstinner committed Jan 30, 2020
    Replace Py_FatalError() calls with _PyErr_WriteUnraisableMsg(),
    _PyObject_ASSERT_FAILED_MSG() or Py_UNREACHABLE()
    in unicode_dealloc() and unicode_release_interned().
  6. bpo-39353: binascii.crc_hqx() is no longer deprecated (GH-18276)

    vstinner committed Jan 30, 2020
    The binascii.crc_hqx() function is no longer deprecated.
  7. bpo-38631: Replace tp_new_wrapper() fatal error with SystemError (GH-…

    vstinner committed Jan 30, 2020
    …18262)
    
    tp_new_wrapper() now raises a SystemError if called with non-type
    self, rather than calling Py_FatalError() which cannot be catched.
  8. bpo-38631: Avoid Py_FatalError() in init_slotdefs() (GH-18263)

    vstinner committed Jan 30, 2020
    Rename init_slotdefs() to _PyTypes_InitSlotDefs() and add a return
    value of type PyStatus. The function is now called exactly once from
    _PyTypes_Init(). Replace calls to init_slotdefs() with an assertion
    checking that slotdefs is initialized.
  9. bpo-38631: Replace Py_FatalError() with _PyObject_ASSERT_FAILED_MSG() (

    vstinner committed Jan 30, 2020
    …GH-18258)
    
    Replace Py_FatalError() with _PyObject_ASSERT_FAILED_MSG() in
    object.c and typeobject.c to also dump the involved Python object on
    a fatal error. It should ease debug when such fatal error occurs.
    
    If the double linked list is inconsistent, _Py_ForgetReference() no
    longer dumps previous and next objects in the fatal error, it now
    only dumps the current object. It ensures that the error message
    is displayed even if dumping the object does crash Python.
    
    Enhance _Py_ForgetReference() error messages;
    _PyObject_ASSERT_FAILED_MSG() logs the "_Py_ForgetReference" function
    name.
  10. bpo-39493: Fix definition of IO.closed in typing.py (#18265)

    hauntsaninja committed Jan 30, 2020
  11. Improve grammar in the import system reference documentation (GH-18209)

    Bonifacio2 committed Jan 30, 2020
    Replaced the period with a comma.
    
    Automerge-Triggered-By: @Mariatta
Commits on Jan 29, 2020
  1. Remove deadcode in _Py_inc_count() (GH-18257)

    vstinner committed Jan 29, 2020
    (tp->tp_next != NULL) check became redundant with
    commit 45294a9 (merged in 2006).
Older
You can’t perform that action at this time.