1. 22 May, 2019 2 commits
    • Jeroen Demeyer's avatar
      bpo-36994: add test for profiling method_descriptor with **kwargs (GH-13461) · b892d3ea
      Jeroen Demeyer authored
      It adds a missing testcase for bpo-34125. This is testing code which is
      affected by PEP 590, so missing this test might accidentally break
      CPython if we screw up with implementing PEP 590.
      b892d3ea
    • Victor Stinner's avatar
      bpo-36829: Add sys.unraisablehook() (GH-13187) · ef9d9b63
      Victor Stinner authored
      Add new sys.unraisablehook() function which can be overridden to
      control how "unraisable exceptions" are handled. It is called when an
      exception has occurred but there is no way for Python to handle it.
      For example, when a destructor raises an exception or during garbage
      collection (gc.collect()).
      
      Changes:
      
      * Add an internal UnraisableHookArgs type used to pass arguments to
        sys.unraisablehook.
      * Add _PyErr_WriteUnraisableDefaultHook().
      * The default hook now ignores exception on writing the traceback.
      * test_sys now uses unittest.main() to automatically discover tests:
        remove test_main().
      * Add _PyErr_Init().
      * Fix PyErr_WriteUnraisable(): hold a strong reference to sys.stderr
        while using it
      ef9d9b63
  2. 21 May, 2019 15 commits
  3. 20 May, 2019 16 commits
  4. 19 May, 2019 7 commits