Re: [Tutor] Dictionary, integer, compression

2009-04-29 Thread Dinesh B Vadhia
ffect performance but could enhance it. Weird, I know! I'll check in with the comp.lang.python lot. Dinesh Message: 3 Date: Wed, 29 Apr 2009 17:35:53 +0100 From: "Alan Gauld" Subject: Re: [Tutor]

Re: [Tutor] Dictionary, integer, compression

2009-04-29 Thread Stefan Behnel
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 stor

Re: [Tutor] Dictionary, integer, compression

2009-04-29 Thread Alan Gauld
"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? I can't think of any reason to compress them, I imagine they are

[Tutor] Dictionary, integer, compression

2009-04-29 Thread Dinesh B Vadhia
This could be a question for the comp.lang.python list but I'll try here first: 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? Dinesh ___