do ... while loop

Joshua Marcus josh at linc.cis.upenn.edu
Wed Oct 13 20:11:55 EDT 1999


Friends,

I'm sure this is a common complaint, and that the answer has been given a 
hundred times but my frustration demands this:

What is the %$*&@#!@ rationale behind not including a do...while control 
structure in Python?

I know you can simply work around it, e.g:

line = "foo"
while input != "":
    line = fp.readline()
    process(line)

... but why must I do this every time?  Am I missing something?

--j




More information about the Python-list mailing list