[Idle-dev] Is this a bug

Douglas S. Blank dblank at cs.brynmawr.edu
Wed May 20 14:32:42 CEST 2009


Is what a bug? Why do you think this has something to do with IDLE? Do you
get a different answer at the Python command line?

-Doug

>
> idle-dev at python.org
>
>
>
> a=10
> x=0
> y=0
> z=0
>
>
>
> v=[]
>
> for me in range(a):
>         x=x+2
>         y=y+4
>         z=z+6
>         v[me:] = x, y, z
>         print v[me:]
> for e in range(a):
>         print v[e:]
>
> IDLE 1.2.2      ==== No Subprocess ====
>>>>
> [2, 4, 6]
> [4, 8, 12]
> [6, 12, 18]
> [8, 16, 24]
> [10, 20, 30]
> [12, 24, 36]
> [14, 28, 42]
> [16, 32, 48]
> [18, 36, 54]
> [20, 40, 60]
> [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 40, 60]
> [4, 6, 8, 10, 12, 14, 16, 18, 20, 40, 60]
> [6, 8, 10, 12, 14, 16, 18, 20, 40, 60]
> [8, 10, 12, 14, 16, 18, 20, 40, 60]
> [10, 12, 14, 16, 18, 20, 40, 60]
> [12, 14, 16, 18, 20, 40, 60]
> [14, 16, 18, 20, 40, 60]
> [16, 18, 20, 40, 60]
> [18, 20, 40, 60]
> [20, 40, 60]
>>>>



More information about the IDLE-dev mailing list