Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df099f5

Browse files
author
Tim Peters
committed
Update internal comments to say _something_ about the "API ID".
Best I can tell, the possible values for this aren't documented anywhere.
1 parent 3af4fad commit df099f5

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Misc/SpecialBuilds.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ negative indices differs from a Python slice):
105105
p[-2*S:-S]
106106
Number of bytes originally asked for. This is a size_t, big-endian (easier
107107
to read in a memory dump).
108-
p[-S:0]
108+
p[-S]
109+
API ID. See PEP 445. This is a character, but seems undocumented.
110+
p[-S+1:0]
109111
Copies of FORBIDDENBYTE. Used to catch under- writes and reads.
110112
p[0:N]
111113
The requested memory, filled with copies of CLEANBYTE, used to catch

Objects/obmalloc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,9 @@ pool_is_in_list(const poolp target, poolp list)
17021702
p[0: S]
17031703
Number of bytes originally asked for. This is a size_t, big-endian (easier
17041704
to read in a memory dump).
1705-
p[S: 2*S]
1705+
p[S}
1706+
API ID. See PEP 445. This is a character, but seems undocumented.
1707+
p[S+1: 2*S]
17061708
Copies of FORBIDDENBYTE. Used to catch under- writes and reads.
17071709
p[2*S: 2*S+n]
17081710
The requested memory, filled with copies of CLEANBYTE.

0 commit comments

Comments
 (0)