Mercurial > cpython-lru_cache-weakref
diff 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 |
line wrap: on
line diff
--- a/Include/Python.h Thu Oct 06 13:10:34 2011 +0200 +++ b/Include/Python.h Thu Oct 06 18:57:27 2011 +0200 @@ -100,7 +100,7 @@ #include "warnings.h" #include "weakrefobject.h" #include "structseq.h" - +#include "accu.h" #include "codecs.h" #include "pyerrors.h" @@ -141,7 +141,7 @@ #endif /* Argument must be a char or an int in [-128, 127] or [0, 255]. */ -#define Py_CHARMASK(c) ((unsigned char)((c) & 0xff)) +#define Py_CHARMASK(c) ((unsigned char)((c) & 0xff)) #include "pyfpe.h"
