diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 14:01:45 +0200 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 14:01:45 +0200 |
commit | b85133943133f60a4f80d586de0e79dc7d8a8bd0 (patch) | |
tree | d0c922e4829b1550422a8690763a57e793c4696f /Python/pythonrun.c | |
parent | 6b6eba70136ede86ddbdf23ad8ec0085426c3bd0 (diff) | |
parent | c2c1773ae1d841b5479b6a9853343aca63554581 (diff) | |
download | cpython-b85133943133f60a4f80d586de0e79dc7d8a8bd0.tar.gz |
Update example: Counter.subtract returns None, not self
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index dd32017574..f0d8550773 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -38,9 +38,10 @@ #ifndef Py_REF_DEBUG #define PRINT_TOTAL_REFS() #else /* Py_REF_DEBUG */ -#define PRINT_TOTAL_REFS() fprintf(stderr, \ - "[%" PY_FORMAT_SIZE_T "d refs]\n", \ - _Py_GetRefTotal()) +#define PRINT_TOTAL_REFS() fprintf(stderr, \ + "[%" PY_FORMAT_SIZE_T "d refs, " \ + "%" PY_FORMAT_SIZE_T "d blocks]\n", \ + _Py_GetRefTotal(), _Py_GetAllocatedBlocks()) #endif #ifdef __cplusplus |