<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_capi.py, branch 3.7</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_capi.py?h=3.7</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_capi.py?h=3.7'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2020-03-12T08:15:17Z</updated>
<entry>
<title>[3.7] bpo-38643: Raise SystemError instead of crashing when PyNumber_ToBase is called with invalid base. (GH-18863). (GH-18955)</title>
<updated>2020-03-12T08:15:17Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-03-12T08:15:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6f4e7fcfca6923d0422b20fc8702240bd4e56ebd'/>
<id>urn:sha1:6f4e7fcfca6923d0422b20fc8702240bd4e56ebd</id>
<content type='text'>
(cherry picked from commit e5ccc94bbb153431698b2391df625e8d47a93276)
</content>
</entry>
<entry>
<title>Revert "Remove unused imports in tests (GH-14518) (GH-14522)" (GH-14555)</title>
<updated>2019-07-02T12:42:39Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-07-02T12:42:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=19b8d903b0dd43dc405c4d6e1c61c3429020545e'/>
<id>urn:sha1:19b8d903b0dd43dc405c4d6e1c61c3429020545e</id>
<content type='text'>
This reverts commit e34b5f4d6483187969d5149c801d056b72ef2ddb.</content>
</entry>
<entry>
<title>Remove unused imports in tests (GH-14518) (GH-14522)</title>
<updated>2019-07-01T18:02:39Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-07-01T18:02:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e34b5f4d6483187969d5149c801d056b72ef2ddb'/>
<id>urn:sha1:e34b5f4d6483187969d5149c801d056b72ef2ddb</id>
<content type='text'>
(cherry picked from commit 8f4ef3b019ce380022018587571b0f970e668de3)</content>
</entry>
<entry>
<title>[3.7] bpo-36389: _PyObject_IsFreed() now also detects uninitialized memory (GH-12770) (GH-12788)</title>
<updated>2019-04-11T20:30:31Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-04-11T20:30:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9e23f0a27cb8bf6e4ea1d2aef36a91502282bbc9'/>
<id>urn:sha1:9e23f0a27cb8bf6e4ea1d2aef36a91502282bbc9</id>
<content type='text'>
* bpo-36389: _PyObject_IsFreed() now also detects uninitialized memory (GH-12770)

Replace _PyMem_IsFreed() function with _PyMem_IsPtrFreed() inline
function. The function is now way more efficient, it became a simple
comparison on integers, rather than a short loop. It detects also
uninitialized bytes and "forbidden bytes" filled by debug hooks
on memory allocators.

Add unit tests on _PyObject_IsFreed().

(cherry picked from commit 2b00db68554422ec37faba2a80179a0172df6349)

* bpo-36389: Change PyMem_SetupDebugHooks() constants (GH-12782)

Modify CLEANBYTE, DEADDYTE and FORBIDDENBYTE constants: use 0xCD,
0xDD and 0xFD, rather than 0xCB, 0xBB and 0xFB, to use the same byte
patterns than Windows CRT debug malloc() and free().

(cherry picked from commit 4c409beb4c360a73d054f37807d3daad58d1b567)
</content>
</entry>
<entry>
<title>bpo-29564:_PyMem_DumpTraceback() suggests enabling tracemalloc (GH-10510) (GH-10517)</title>
<updated>2018-11-13T14:50:56Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-11-13T14:50:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d57a3e5d03efdda6247c27bd682872edf399d88b'/>
<id>urn:sha1:d57a3e5d03efdda6247c27bd682872edf399d88b</id>
<content type='text'>
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.</content>
</entry>
<entry>
<title>bpo-34272: Move argument parsing tests from test_capi to test_getargs2. (GH-8567)</title>
<updated>2018-08-06T14:11:04Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-08-06T14:11:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a1ff5f9031dc81b2c368def037fc0e88f5bc48b7'/>
<id>urn:sha1:a1ff5f9031dc81b2c368def037fc0e88f5bc48b7</id>
<content type='text'>
(cherry picked from commit 8f7bb100d0fa7fb2714f3953b5b627878277c7c6)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192)</title>
<updated>2018-07-11T16:56:05Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-07-11T16:56:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=48d2aeb009f8e58b1efae00ee0e225951b58737e'/>
<id>urn:sha1:48d2aeb009f8e58b1efae00ee0e225951b58737e</id>
<content type='text'>
(cherry picked from commit 504373c59b48f1ea12132d515459022730db6047)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-32030: Rework memory allocators (#4625)</title>
<updated>2017-11-29T16:20:38Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-11-29T16:20:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5d39e0429029324cae90bba2f19fb689b007c7d6'/>
<id>urn:sha1:5d39e0429029324cae90bba2f19fb689b007c7d6</id>
<content type='text'>
* Fix _PyMem_SetupAllocators("debug"): always restore allocators to
  the defaults, rather than only caling _PyMem_SetupDebugHooks().
* Add _PyMem_SetDefaultAllocator() helper to set the "default"
  allocator.
* Add _PyMem_GetAllocatorsName(): get the name of the allocators
* main() now uses debug hooks on memory allocators if Py_DEBUG is
  defined, rather than calling directly malloc()
* Document default memory allocators in C API documentation
* _Py_InitializeCore() now fails with a fatal user error if
  PYTHONMALLOC value is an unknown memory allocator, instead of
  failing with a fatal internal error.
* Add new tests on the PYTHONMALLOC environment variable
* Add support.with_pymalloc()
* Add the _testcapi.WITH_PYMALLOC constant and expose it as
   support.with_pymalloc().
* sysconfig.get_config_var('WITH_PYMALLOC') doesn't work on Windows, so
   replace it with support.with_pymalloc().
* pythoninfo: add _testcapi collector for pymem</content>
</entry>
<entry>
<title>bpo-32136: Separate embedding tests from C API tests (GH-4567)</title>
<updated>2017-11-27T22:11:51Z</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2017-11-27T22:11:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=39f0bb5ad0715dbfc0a2d5dd6d0ddea9e4c65ae2'/>
<id>urn:sha1:39f0bb5ad0715dbfc0a2d5dd6d0ddea9e4c65ae2</id>
<content type='text'>
Some parts of the C API are only relevant to larger
applications embedding CPython as a runtime engine.

The helpers to test those APIs are already separated
out into Programs/_testembed.c, this update moves
the associated test cases out into their own dedicated
test file.</content>
</entry>
<entry>
<title>bpo-32096: Remove obj and mem from _PyRuntime (#4532)</title>
<updated>2017-11-24T11:09:24Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-11-24T11:09:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9e87e7776f7ace66baaf7247233afdabd00c2b44'/>
<id>urn:sha1:9e87e7776f7ace66baaf7247233afdabd00c2b44</id>
<content type='text'>
bpo-32096, bpo-30860:  Partially revert the commit
2ebc5ce42a8a9e047e790aefbf9a94811569b2b6:

* Move structures back from Include/internal/mem.h to
  Objects/obmalloc.c
* Remove _PyObject_Initialize() and _PyMem_Initialize()
* Remove Include/internal/pymalloc.h
* Add test_capi.test_pre_initialization_api():
   Make sure that it's possible to call Py_DecodeLocale(), and then call
   Py_SetProgramName() with the decoded string, before Py_Initialize().

PyMem_RawMalloc() and Py_DecodeLocale() can be called again before
_PyRuntimeState_Init().

Co-Authored-By: Eric Snow &lt;ericsnowcurrently@gmail.com&gt;</content>
</entry>
</feed>
