On 20 June 2013 22:16, Antoine Pitrou <solip...@pitrou.net> wrote: > Le Thu, 20 Jun 2013 13:26:52 +0200, > Victor Stinner <victor.stin...@gmail.com> a écrit : > >> Hi, >> >> I changed the PEP 445 according to the discussing on python-dev. >> >> Read it online: >> http://www.python.org/dev/peps/pep-0445/ >> >> Changes: >> >> * add PyMemAllocatorDomain enum: PYALLOC_PYMEM_RAW, PYALLOC_PYMEM or >> PYALLOC_PYOBJECT > > PYMEM_DOMAIN_RAW?
The challenge there is coming up with a good name for PYALLOC_PYMEM. I think Victor's names for the domains work well: - "PYALLOC_" prefix to say "this is an allocation domain" - "PYMEM_RAW" suffix for PyMem_RawMalloc/Realloc/Free - "PYMEM" suffix for PyMem_Malloc/Realloc/Free - "PYOBJECT" suffix for PyObject_Malloc/Realloc/Free Although, there's a copy-and-paste error in the domain definitions (2 *Reallocs in each entry and no *Frees). If Guido doesn't want to do it, I'm happy to. Antoine would be a good choice too, since he's the one who suggested taking the time to thrash out the API details in a PEP (which I agree has substantially improved the end result). Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com