OrderedDictionary (was: Re: [squeak-dev] Re: The Trunk: Collections-mt.593.mcz)

Tobias Pape Das.Linux at gmx.de
Fri Jan 16 15:01:24 UTC 2015


On 16.01.2015, at 12:13, Bert Freudenberg <bert at freudenbergs.de> wrote:

> On 16.01.2015, at 09:39, Marcel Taeumel <marcel.taeumel at student.hpi.uni-potsdam.de> wrote:
>> 
>> https://www.python.org/dev/peps/pep-0372/
> 
> Interesting. This states that the order is never updated: when an existing element is overwritten, it is not moved to the end. Only new keys are appended. This allows for a more efficient implementation (such as suggested by Levente).
> 
> I think an OrderedDictionary would most often be used to preserve the original order of keys. Assigning a new value should not move the item to the end.
> 

ACK. See other mail.
Best
	-Tobias

> - Bert -


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1625 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150116/07fbccff/signature.pgp


More information about the Squeak-dev mailing list