1. 20 Nov, 2018 6 commits
  2. 19 Nov, 2018 1 commit
  3. 18 Nov, 2018 2 commits
  4. 17 Nov, 2018 3 commits
  5. 16 Nov, 2018 7 commits
  6. 15 Nov, 2018 4 commits
  7. 14 Nov, 2018 7 commits
  8. 13 Nov, 2018 10 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
    • Paul Ganssle's avatar
      bpo-35081: Remove Py_BUILD_CORE from datetime.h (GH-10416) · 0d12672b
      Paul Ganssle authored
      Datetime macros like PyDate_Check() have two implementations, one using
      the C API capsule and one using direct access to the datetime type
      symbols defined in _datetimemodule.c. Since the direct access versions
      of the macros are only used in _datetimemodule.c, they have been moved
      out of "datetime.h" and into _datetimemodule.c.
      
      The _PY_DATETIME_IMPL macro is currently necessary in order to avoid
      both duplicate definitions of these macros in _datetimemodule.c and
      unnecessary declarations of C API capsule-related macros and varibles in
      datetime.h.
      Co-Authored-By: default avatarVictor Stinner <vstinner@redhat.com>
      0d12672b
    • Gregory P. Smith's avatar
      bpo-35214: Add _Py_ prefix to MEMORY_SANITIZER def. (GH-10503) · 3015fb8c
      Gregory P. Smith authored
      Rename our new MEMORY_SANITIZER define to _Py_MEMORY_SANITIZER.
      Project based C Preprocessor namespacing at its finest. :P
      3015fb8c
    • Windson yang's avatar
      Fix a couple documentation typos. (GH-10498) · 0dc1e45d
      Windson yang authored
      
      
      reproduciblity -> reproducibility
      PyPA are the group -> PyPA is the group
      0dc1e45d
    • Gregory P. Smith's avatar
      Disable getc_unlocked() with MemorySanitizer. (GH-10499) · e6c77d83
      Gregory P. Smith authored
      clang's MemorySanitizer understand getc() but does not understand
      getc_unlocked().  Workaround: Don't use it on msan builds.
      e6c77d83