[Python-Dev] Caching objects in memory

Michael Hudson mwh at python.net
Fri Apr 22 15:50:57 CEST 2005

Facundo Batista <facundobatista at gmail.com> writes:

> Is there a document that details which objects are cached in memory
> (to not create the same object multiple times, for performance)?


> If not, could please somebody point me out where this is implemented
> for strings?

In PyString_FromStringAndSize and PyString_FromString, it seems to me.


  I also feel it essential to note, [...], that Description Logics,
  non-Monotonic Logics, Default Logics and Circumscription Logics 
  can all collectively go suck a cow. Thank you.
              -- http://advogato.org/person/Johnath/diary.html?start=4

More information about the Python-Dev mailing list