New submission from R Blackmore <squan...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue13206>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to