[Python-checkins] cpython (3.4): update notes to talk about -X showrefcount
benjamin.peterson
python-checkins at python.org
Sun Mar 30 23:16:26 CEST 2014
http://hg.python.org/cpython/rev/0c20f9bea056
changeset: 90052:0c20f9bea056
branch: 3.4
parent: 90049:8410ced476c2
user: Benjamin Peterson <benjamin at python.org>
date: Sun Mar 30 17:16:09 2014 -0400
summary:
update notes to talk about -X showrefcount
files:
Misc/SpecialBuilds.txt | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Misc/SpecialBuilds.txt b/Misc/SpecialBuilds.txt
--- a/Misc/SpecialBuilds.txt
+++ b/Misc/SpecialBuilds.txt
@@ -13,12 +13,14 @@
------------
Turn on aggregate reference counting. This arranges that extern _Py_RefTotal
-hold a count of all references, the sum of ob_refcnt across all objects. In a
-debug-mode build, this is where the "8288" comes from in
+hold a count of all references, the sum of ob_refcnt across all objects.
+Passing ``-X showrefcount`` on the command line causes the interactive
+interpreter to print the reference count total as well the number of memory
+blocks allocated after each statement:
>>> 23
23
- [8288 refs]
+ [8288 refs, 14332 blocks]
>>>
Note that if this count increases when you're not storing away new objects,
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list