[Tutor] deleting CR within files
Brian van den Broek
bvande at po-box.mcgill.ca
Mon Apr 19 11:30:09 EDT 2004
David Talaga said unto the world upon 19/04/2004 09:57:
> Is there such a thing as a do loop in Python? Like, do this until this
> is done. In my program I have a simple widget and need to initiate it
> before my dialog pops up. And then give the user the option to select
> more files with the same widget. I know that I need to use some kind of
> loop and in VB a do loop would work best. But what about in Python?
>
> David Talaga
>
<SNIP>
Hi David,
*warning* -- response from a newbie!
Unless it has been added to Python since the versions for which the books I
am reading was written, no, I don't think there is a do loop.
But what about something like this pseudo-code:
while 1:
some stuff here
if done condition is met:
break
Would this meet your needs?
Best,
Brian vdB
More information about the Tutor
mailing list