Re: [Tutor] Reversed dictionary returned by default

2013-03-01 Thread Prasad, Ramit
Dave Angel wrote: > On 03/01/2013 02:48 PM, Huperetes wrote: > > I am getting the following for my installation. > > > > Why is this happening, and how do I get it to work properly (returning > > element 0 - n, versus n - 0)? > > > > Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit

Re: [Tutor] Reversed dictionary returned by default

2013-03-01 Thread Brad Hudson
> I am getting the following for my installation. > > Why is this happening, and how do I get it to work properly (returning > element 0 - n, versus n - 0)? > > Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on > win32 > Type "help", "copyright", "credits" or "license" fo

Re: [Tutor] Reversed dictionary returned by default

2013-03-01 Thread Dave Angel
On 03/01/2013 02:48 PM, Huperetes wrote: I am getting the following for my installation. Why is this happening, and how do I get it to work properly (returning element 0 - n, versus n - 0)? Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyrigh

Re: [Tutor] Reversed dictionary returned by default

2013-03-01 Thread Joel Goldstick
On Fri, Mar 1, 2013 at 2:48 PM, Huperetes wrote: > I am getting the following for my installation. > > Why is this happening, and how do I get it to work properly (returning > element 0 - n, versus n - 0)? > This is happening because dictionaries are not ordered. The fact that it happens to loo

Re: [Tutor] Reversed dictionary returned by default

2013-03-01 Thread Danny Yoo
> Why is this happening, and how do I get it to work properly (returning > element 0 - n, versus n - 0)? Python dictionaries are unordered collections. When we iterate across them, we can not guarantee that we'll walk the elements in the order that we inserted them. The reason for that is becaus

[Tutor] Reversed dictionary returned by default

2013-03-01 Thread Huperetes
I am getting the following for my installation. Why is this happening, and how do I get it to work properly (returning element 0 - n, versus n - 0)? Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more informa