1. 21 Nov, 2018 1 commit
  2. 20 Nov, 2018 9 commits
  3. 19 Nov, 2018 1 commit
  4. 18 Nov, 2018 2 commits
  5. 17 Nov, 2018 3 commits
  6. 16 Nov, 2018 7 commits
  7. 15 Nov, 2018 4 commits
  8. 14 Nov, 2018 7 commits
  9. 13 Nov, 2018 6 commits
    • Victor Stinner's avatar
      bpo-35233: Rewrite test_embed.InitConfigTests (GH-10524) · 7ddd56f4
      Victor Stinner authored
      * Fix _PyCoreConfig_SetGlobalConfig(): set also Py_FrozenFlag
      * Fix _PyCoreConfig_AsDict(): export also xoptions
      * Add _Py_GetGlobalVariablesAsDict() and _testcapi.get_global_config()
      * test.pythoninfo: dump also global configuration variables
      * _testembed now serializes global, core and main configurations
        using JSON to reuse _Py_GetGlobalVariablesAsDict(),
        _PyCoreConfig_AsDict() and _PyMainInterpreterConfig_AsDict(),
        rather than duplicating code.
      * test_embed.InitConfigTests now test much more configuration
        variables
      7ddd56f4
    • Gregory P. Smith's avatar
      bpo-35214: Fix OOB memory access in unicode escape parser (GH-10506) · 746b2d35
      Gregory P. Smith authored
      Discovered using clang's MemorySanitizer when it ran python3's
      test_fstring test_misformed_unicode_character_name.
      
      An msan build will fail by simply executing: ./python -c 'u"\N"'
      746b2d35
    • Victor Stinner's avatar
      bpo-35233: Fix _PyMainInterpreterConfig_Copy() (GH-10519) · 00b137c7
      Victor Stinner authored
      * Fix _PyMainInterpreterConfig_Copy():
         copy 'install_signal_handlers' attribute
      * Add _PyMainInterpreterConfig_AsDict()
      * Add unit tests on the main interpreter configuration
        to test_embed.InitConfigTests
      * test.pythoninfo: log also main_config
      00b137c7
    • Victor Stinner's avatar
      bpo-29564:_PyMem_DumpTraceback() suggests enabling tracemalloc (GH-10510) · f966e539
      Victor Stinner authored
      If tracemalloc is not tracing Python memory allocations,
      _PyMem_DumpTraceback() now suggests to enable tracemalloc
      to get the traceback where the memory block has been allocated.
      f966e539
    • Eddie Elizondo's avatar
    • Victor Stinner's avatar
      bpo-35081: Make some _PyGC macros internal (GH-10507) · 1a6be91e
      Victor Stinner authored
      * Move "GC" macros together:
      
        * PyObject_IS_GC()
        * _Py_AS_GC()
        * _PyObject_GC_IS_TRACKED()
        * _PyObject_GC_MAY_BE_TRACKED()
      
      * Mark other GC macros as internal (#ifdef Py_BUILD_CORE):
      
        * _PyGCHead_NEXT(g), _PyGCHead_SET_NEXT(g, p)
        * _PyGCHead_PREV(g), _PyGCHead_SET_PREV(g, p)
        * _PyGCHead_FINALIZED(g), _PyGCHead_SET_FINALIZED(g)
        * _PyGC_FINALIZED(o), _PyGC_SET_FINALIZED(o)
        * _PyObject_GC_TRACK(o), _PyObject_GC_UNTRACK(o)
        * _PyGC_PREV_MASK_FINALIZED
        * _PyGC_PREV_MASK_COLLECTING
        * _PyGC_PREV_SHIFT
        * _PyGC_PREV_MASK
      
      * Replace _PyGC_generation0 with _PyRuntime.gc.generation0
      * _queuemodule.c: replace _PyObject_GC_UNTRACK()
        with with PyObject_GC_UnTrack()
      * Document that  _PyObject_GC_TRACK() _PyObject_GC_UNTRACK() macros
        have been removed from the public C API.
      1a6be91e