[Python-ideas] "While" suggestion
steven.bethard at gmail.com
Thu Jul 3 22:15:04 CEST 2008
On Thu, Jul 3, 2008 at 11:11 AM, Torsten Bronger
<bronger at physik.rwth-aachen.de> wrote:
>> 2008/7/3 Stavros Korokithakis
>> <stavros at korokithakis.net>:
>>> while my_file.read(1024) as data:
> I don't like it. Taken as an English expression, it suggests
> something misleading. I looked at my own code (not much; 15.000
> lines) and found three "while True", and none of them could be
> expressed with "while ... as ...". It is not worth it in my
I had similar results. Around 10 "while True" constructs, and none of
them would have worked with "while ... as ..."
-1 for me.
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
--- Bucky Katt, Get Fuzzy
More information about the Python-ideas