comparison Include/Python.h @ 72755:f9f782f2369e 3.2

Issue #12911: Fix memory consumption when calculating the repr() of huge tuples or lists. This introduces a small private API for this common pattern. The issue has been discovered thanks to Martin's huge-mem buildbot.
author Antoine Pitrou <solipsis@pitrou.net>
date Thu, 06 Oct 2011 18:57:27 +0200
parents 3c9232a684ae
children f34ac2e9d5cf 656c13024ede
comparison
equal deleted inserted replaced
72744:7b277d5530bc 72755:f9f782f2369e
98 #include "genobject.h" 98 #include "genobject.h"
99 #include "descrobject.h" 99 #include "descrobject.h"
100 #include "warnings.h" 100 #include "warnings.h"
101 #include "weakrefobject.h" 101 #include "weakrefobject.h"
102 #include "structseq.h" 102 #include "structseq.h"
103 103 #include "accu.h"
104 104
105 #include "codecs.h" 105 #include "codecs.h"
106 #include "pyerrors.h" 106 #include "pyerrors.h"
107 107
108 #include "pystate.h" 108 #include "pystate.h"
139 #ifdef __cplusplus 139 #ifdef __cplusplus
140 } 140 }
141 #endif 141 #endif
142 142
143 /* Argument must be a char or an int in [-128, 127] or [0, 255]. */ 143 /* Argument must be a char or an int in [-128, 127] or [0, 255]. */
144 #define Py_CHARMASK(c) ((unsigned char)((c) & 0xff)) 144 #define Py_CHARMASK(c) ((unsigned char)((c) & 0xff))
145 145
146 #include "pyfpe.h" 146 #include "pyfpe.h"
147 147
148 /* These definitions must match corresponding definitions in graminit.h. 148 /* These definitions must match corresponding definitions in graminit.h.
149 There's code in compile.c that checks that they are the same. */ 149 There's code in compile.c that checks that they are the same. */