Ok, well... I think people lost the scope of my question.. I'm happy using the first method that was given to my post, I have stated in two emails that the order doesn't matter.. <br><br>What I asked was why the order was changed, or more directly, what is the command actually doing to my data? I'm sure the order isn't totally random, but based on how the items are checked and dropped.
<br><br>The reason I care is because I'm just nosey like that and what to know what it is doing differently then the method I mentioned in the start of this thread. <br><br>Never did I question the validity of the answer the first reply gave me, it works for what I need, not only that, it works well for what I need. I never put any stipulation on the order of the final data, so I didn't expect an answer that was order related.
<br><br><div><span class="gmail_quote">On 12/1/06, <b class="gmail_sendername">Tor Hildrum</b> <<a href="mailto:torhildrum@gmail.com">torhildrum@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 11/30/06, John Fouhy <<a href="mailto:john@fouhy.net">john@fouhy.net</a>> wrote:<br><br>> For the same reason that dictionaries don't preserve order.<br>> Basically, sets are (I think) implemented using a hash table. You can
<br>> read about hash tables on wikipedia (or many other places), but one of<br>> the components of a hash table is a function mapping keys to integers<br>> in a particular range.<br><br>Why not just call a sigar for a sigar.
<br><br>A set is a set, it may be implemented using a hash or it may be<br>implemed using some other datastructure. It could be implemented using<br>lists which preserves order, all though that doesn't make much sense.<br>
How it is implemented does not really matter here.<br><br><a href="http://en.wikipedia.org/wiki/Set">http://en.wikipedia.org/wiki/Set</a><br><br>If you want a collection of ordered objects, you don't want a set. Not<br>even if the current implementation of sets in Python did preserve
<br>order. Doing so could not be considered as anything else than a ugly<br>hack or exploitation of the current implementation. And would be<br>likely to break in the future.<br><br>Tor<br>_______________________________________________
<br>Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br>