static PyStringObject *characters[UCHAR_MAX + 1]; ... /* This dictionary holds all interned strings. Note that references to strings in this dictionary are *not* counted in the string's ob_refcnt. When the interned string reaches a refcnt of 0 the st…
#!/usr/bin/env python #-*- coding=utf-8 -*- small_ints = dict() for i in range(-10000,10000): small_ints[i] = id(i) for i in range(-10000,10000): if id(i) != small_ints[i]: del small_ints[i] print("[%s, %s]"%(min(small_ints.keys()), max(small_in…