The Python Oracle

Why do two identical lists have a different memory footprint?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Meditation

--

Chapters
00:00 Question
00:48 Accepted answer (Score 182)
01:51 Answer 2 (Score 57)
03:52 Answer 3 (Score 2)
04:53 Thank you

--

Full question
https://stackoverflow.com/questions/5152...

Answer 1 links:
[this question]: https://stackoverflow.com/questions/4001...
[docs]: https://docs.python.org/3/library/dis.ht...
[source code]: https://github.com/python/cpython/blob/4...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #list #memorymanagement #pythoninternals

#avk47