[Tutor] Dictionary, integer, compression

Stefan Behnel stefan_ml at behnel.de
Wed Apr 29 18:36:19 CEST 2009

Dinesh B Vadhia wrote:
> Say, you have a dictionary of integers, are the integers stored in a
> compressed integer format or as integers ie. are integers encoded before
> being stored in the dictionary and then decoded when read?

Integer objects are not special cased in dictionaries. They are stored as
normal int/long objects.

Dictionaries do not use any kind of compression in Python.


More information about the Tutor mailing list