]> granicus.if.org Git - python/commitdiff
Update internal comments to say _something_ about the "API ID".
authorTim Peters <tim@python.org>
Fri, 20 Sep 2013 02:06:37 +0000 (21:06 -0500)
committerTim Peters <tim@python.org>
Fri, 20 Sep 2013 02:06:37 +0000 (21:06 -0500)
Best I can tell, the possible values for this aren't documented anywhere.

Misc/SpecialBuilds.txt
Objects/obmalloc.c

index f869e7c05e67404ccb51b624a18722246165748e..646ac2344cb3e23298c8fb9b03b781f68b4da20f 100644 (file)
@@ -105,7 +105,9 @@ negative indices differs from a Python slice):
 p[-2*S:-S]
     Number of bytes originally asked for.  This is a size_t, big-endian (easier
     to read in a memory dump).
-p[-S:0]
+p[-S]
+    API ID.  See PEP 445.  This is a character, but seems undocumented.
+p[-S+1:0]
     Copies of FORBIDDENBYTE.  Used to catch under- writes and reads.
 p[0:N]
     The requested memory, filled with copies of CLEANBYTE, used to catch
index db774b8423f7279ff4de10cfbd973a355d36e3e6..2ab66a33b92fbde6cab9735d6bdddbdf4b7390c7 100644 (file)
@@ -1702,7 +1702,9 @@ pool_is_in_list(const poolp target, poolp list)
 p[0: S]
     Number of bytes originally asked for.  This is a size_t, big-endian (easier
     to read in a memory dump).
-p[S: 2*S]
+p[S}
+    API ID.  See PEP 445.  This is a character, but seems undocumented.
+p[S+1: 2*S]
     Copies of FORBIDDENBYTE.  Used to catch under- writes and reads.
 p[2*S: 2*S+n]
     The requested memory, filled with copies of CLEANBYTE.