[Python-Dev] Wishlist: dowhile
Raymond Hettinger
python at rcn.com
Mon Jun 13 08:43:29 CEST 2005
> By the way, whatever happened to "and while"?
That is making something hard and weird out of something simple.
There were no shortage of odd suggestions to force the condition line
to appear lower in the block than the starting line. All of them
smelled of rotten eggs -- they just don't fit the Python mold.
In contrast, the dowhile solution only takes about 30 seconds to get
used to. Maybe that idea should follow the path of the genexp PEP, get
rejected now, and then get resurrected as a bright idea two years from
now. Or maybe not.
Raymond
More information about the Python-Dev
mailing list