Re: [Tutor] Displaying range in 3.0.1

2009-05-28 Thread Alan Gauld
"Gregory Morton" wrote I've been reading this Python 3.0.1 tutorial(http://docs.python.org/3.0/tutorial/controlflow.html), Looks like a bug in the tutorial! In Python 3 you cannot just print a range it is now a generator. Notice that in the tutorial the range() calls are not shown at the >

Re: [Tutor] Displaying range in 3.0.1

2009-05-28 Thread wesley chun
On Thu, May 28, 2009 at 10:22 AM, Gregory Morton wrote: > I've been reading this Python 3.0.1 > tutorial(http://docs.python.org/3.0/tutorial/controlflow.html), and now I'm > stuck at the second example in 4.3. This is what the example says the output > should look like: > > range(5, 10) >5 t

Re: [Tutor] Displaying range in 3.0.1

2009-05-28 Thread Sander Sweers
2009/5/28 Gregory Morton : > I've been reading this Python 3.0.1 > tutorial(http://docs.python.org/3.0/tutorial/controlflow.html), and now I'm > stuck at the second example in 4.3. This is what the example says the output > should look like: No it doen't but I can understand the confusion. More in

[Tutor] Displaying range in 3.0.1

2009-05-28 Thread Gregory Morton
I've been reading this Python 3.0.1 tutorial(http://docs.python.org/3.0/tutorial/controlflow.html), and now I'm stuck at the second example in 4.3. This is what the example says the output should look like:range(5, 10) 5 through 9 range(0, 10, 3) 0, 3, 6, 9 range(-10, -100, -30) -10,