Re: dict = no ordered keys = no slicing

2006-07-15 Thread Antoon Pardon
On 2006-07-14, Nick Vatamaniuc <[EMAIL PROTECTED]> wrote: >>I have a tree class, a tree acts like a dictionary, but when you >> iterate over it, it always iterates over the keys in order. > > Antoon, > > First of all there is a distinction between ordered and un-ordered data > types. You can only s

dict = no ordered keys = no slicing

2006-07-14 Thread Nick Vatamaniuc
>I have a tree class, a tree acts like a dictionary, but when you > iterate over it, it always iterates over the keys in order. Antoon, First of all there is a distinction between ordered and un-ordered data types. You can only slice ordered data types. Lists and tuples are ordered while the keys