[Patches] PyMem [2/8] - Include/mymalloc.h
Guido van Rossum
guido@python.org
Wed, 03 May 2000 19:37:14 -0400
Vladimir,
I'm checking it all in now. We'll see how well it works in the next
alpha release.
Here are some comments...
Suggestion:
Include instructions for using your own allocator -- what you need to
change, what you need to implement, what rules you need to play by.
(Is there only one level where you can substitute your own? Or more?)
Questions:
Do we really need to have even b/w compat macro support for
Py_Malloc()? I think it's cleaner to fail with an error during
compilation or linking than to silently mess up things when someone
calls it expecting that it will raise an exception where in fact it
won't. I've deleted it. And also PyMem_XDEL, for the same reason.
Should the PyCore_* names be _PyCore_* to indicate they are for
internal use only? When *is* it okay to use them?
--Guido van Rossum (home page: http://www.python.org/~guido/)