1. 09 Aug, 2018 3 commits
    • John Kirkham's avatar
      Define Python Raw Mem helpers in ModuleSetupCode · 8d324dfd
      John Kirkham authored
      To handle the Python version differences, handle the definitions of
      `PyMem_Raw*` functions in `ModuleSetupCode`. Then extern them in
      `cpython.mem` without using a version check or a specific header.
      8d324dfd
    • John Kirkham's avatar
      Add Python Raw memory helper functions · 9fbbf216
      John Kirkham authored
      In Python 3.4+, Raw memory helper functions were added to wrap, track,
      and check `malloc` and `free` calls for C memory outside of the GIL.
      These have the same API as the existing `PyMem_*` calls except they use
      Raw and never require the GIL. For Python 2/3 compatibility, export the
      existing `PyMem_` functions on Python 2 as `PyMem_Raw` where they act
      basically equivalently. These are especially important as Python 3.6
      changed the existing `PyMem_` functions to allocate from pymalloc
      instead of the C allocator meaning the GIL must now be held with them.
      So these are Python 2/3 alternatives that can be relied on to not
      require the GIL.
      9fbbf216
    • Stefan Behnel's avatar
      Fix constant folding test in Py2. · 63a81578
      Stefan Behnel authored
      63a81578
  2. 04 Aug, 2018 2 commits
  3. 03 Aug, 2018 12 commits
  4. 01 Aug, 2018 2 commits
  5. 31 Jul, 2018 2 commits
  6. 28 Jul, 2018 1 commit
  7. 23 Jul, 2018 8 commits
  8. 22 Jul, 2018 6 commits
  9. 21 Jul, 2018 2 commits
  10. 18 Jul, 2018 2 commits