[Python-checkins] r61305 - python/trunk/Doc/c-api/intro.rst

georg.brandl python-checkins at python.org
Sat Mar 8 11:05:24 CET 2008


Author: georg.brandl
Date: Sat Mar  8 11:05:24 2008
New Revision: 61305

Modified:
   python/trunk/Doc/c-api/intro.rst
Log:
#1533486: fix types in refcount intro.


Modified: python/trunk/Doc/c-api/intro.rst
==============================================================================
--- python/trunk/Doc/c-api/intro.rst	(original)
+++ python/trunk/Doc/c-api/intro.rst	Sat Mar  8 11:05:24 2008
@@ -137,7 +137,7 @@
 object type, such as a list, as well as performing any additional finalization
 that's needed.  There's no chance that the reference count can overflow; at
 least as many bits are used to hold the reference count as there are distinct
-memory locations in virtual memory (assuming ``sizeof(long) >= sizeof(char*)``).
+memory locations in virtual memory (assuming ``sizeof(Py_ssize_t) >= sizeof(void*)``).
 Thus, the reference count increment is a simple operation.
 
 It is not necessary to increment an object's reference count for every  local


More information about the Python-checkins mailing list