Category "python-internals"

Memory usage of Python base types (particulary int and float)

This is an example from Python 3.8.0 interpreter (however, it is similar in 3.7.5) >>> import sys >>> sys.getsizeof(int) 416 >>> sys

Are dictionaries ordered in Python 3.6+?

Dictionaries are insertion ordered as of Python 3.6. It is described as a CPython implementation detail rather than a language feature. The documentation states