On 1/19/07, Adam Cripps <[EMAIL PROTECTED]> wrote:
> I'm adding strings to a Set to prevent duplicates. However, the
> strings are meant to be in the correct order. When I add the string to
> the Set, the order seems to change (and I don't seem to be able to
> predict what order they are in).

Sets, like dictionaries, hold their items in an arbitrary order - see
<http://tinyurl.com/a2nkg>.

-- 
Cheers,
Simon B
[EMAIL PROTECTED]
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to