[issue13206] while loop vs for loop test
R Blackmore
report at bugs.python.org
Tue Oct 18 08:31:14 CEST 2011
New submission from R Blackmore <squank77 at yahoo.com>:
Using Python 3.2.2 on Windows 7
See attached file
Was having problem with a program I was doing... couldn't get around issue unless I changed from "while" loop to "for" loop... WTF???
So restarted computer and then Python Shell and IDLE I wrote a very simple loop file... The 1st loop is a while loop that hangs and only prints divisor 1 and divisor 2 (Should also print divisor 5)
For loop works as expected printing
divisor 1
divisor 2
divisor 3
Unless I'm missing something both loops should return (i.e. print) same!
Cheers
----------
components: IO
files: LOOP_Test1.py
messages: 145775
nosy: JavaJunkie
priority: normal
severity: normal
status: open
title: while loop vs for loop test
versions: Python 3.2
Added file: http://bugs.python.org/file23436/LOOP_Test1.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13206>
_______________________________________
More information about the Python-bugs-list
mailing list