[issue6836] Mismatching use of memory APIs
Tim Peters
report at bugs.python.org
Wed Sep 9 03:40:23 CEST 2009
Tim Peters <tim.peters at gmail.com> added the comment:
Right, I /was/ hallucinating about serialno -- good catch.
Mysterious little integers still suck, though ;-) If you're going to
store it in a byte, then you can #define semi-meaningful letter codes
instead; e.g.,
#define _PYMALLOC_OBJECT_ID 'o'
#define _PYMALLOC_MEM_ID 'm'
The place where those are defined would be a good place to document what
the heck they mean too.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6836>
_______________________________________
More information about the Python-bugs-list
mailing list