On 6/19/2013 11:24 AM, Victor Stinner wrote:
2013/6/19 Antoine Pitrou <[email protected]>:
Le Tue, 18 Jun 2013 22:40:49 +0200,
Victor Stinner <[email protected]> a écrit :

Only one get/set function for block allocators
----------------------------------------------

Replace the 6 functions:

* ``void PyMem_GetRawAllocator(PyMemBlockAllocator *allocator)``
* ``void PyMem_GetAllocator(PyMemBlockAllocator *allocator)``
* ``void PyObject_GetAllocator(PyMemBlockAllocator *allocator)``
* ``void PyMem_SetRawAllocator(PyMemBlockAllocator *allocator)``
* ``void PyMem_SetAllocator(PyMemBlockAllocator *allocator)``
* ``void PyObject_SetAllocator(PyMemBlockAllocator *allocator)``

with 2 functions with an additional *domain* argument:

* ``int PyMem_GetBlockAllocator(int domain, PyMemBlockAllocator
*allocator)``
* ``int PyMem_SetBlockAllocator(int domain, PyMemBlockAllocator
*allocator)``

I would much prefer this solution.

I do to. The two names can be remembered as one pair with only get/set difference.

--
Terry Jan Reedy


_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to