I'm reading High Performance Python by Micha Gorelick. In chapter 3 on tuples vs lists he claims that tuples of size 1-20 are cached by the Python runtime. I did not find an answer to this on the first page of a Google search, nor Python's docs. Can someone provide an official Python source that confirms this claim?
Quotes from book
"Tuples are cached by the Python runtime, which means that we don't need to talk to the kernal to reserve memory every time we want to use one."
"For tuples of sizes 1-20, however, when they are no longer in use the space isn't immediately given back to the system, but rather saved for future use."