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.

Stefan

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to