Why are Python integers implemented as objects?
问题 Why are Python integers implemented as objects? The article Why Python is Slow: Looking Under the Hood as well as its comments contain useful information about the Python memory model and its ramifications, in particular wrt to performance. But this article does not ask or answer the question why the decision to implement integers as objects was made in the first place. In particular, referring to Python as dynamically typed is not an answer. It is possible to implement integers as integers