Did you know that Python caches integers?

To gain a performance boost and avoid reallocation of frequently used integers, Python creates singleton instances of small integer values and uses them by reference. Read more

Similar

I used Matlab. Now I use Python

Steve Tjoa -- Signal Processing, Machine Learning, Music Information Retrieval. Worked at Humtap, iZotope, and Imagine Research. Ph.D., Electrical Engineering, University of Maryland. Lives in San Francisco, CA, USA.

Read more »