Request for Enhancement

Steve Holden sholden at holdenweb.com
Wed Aug 30 22:12:45 EDT 2000


Steve Holden wrote:
[snip]

> The classic pythonic method of processing such files is:
> 
> while 1:                        # loop forever
>     line = F.readline           # get the next line
>     if line == "": break        # null string indicates EOF
>     ... process line ...
> 
> It often seems unnatural to Python newcomers, but you get used to it!
>  
That should, of course, have been:

while 1:                        # loop forever
    line = F.readline()         # get the next line
    if line == "": break        # null string indicates EOF
    ... process line ...

Sorry!

As far as an enhancement is concerned, this has been discussed often
enough to make it seem unlikely any changes will be made.

regards
 Steve
> > Thanks.
> >
> > --
> > KC5TJA/6, DM13, QRP-L #1447 | Official Channel Saint, *Team Amiga*
> > Samuel A. Falvo II          |
> > Oceanside, CA               |
> --
> Helping people meet their information needs with training and technology.
> 703 967 0887      sholden at bellatlantic.net      http://www.holdenweb.com/

-- 
Helping people meet their information needs with training and technology.
703 967 0887      sholden at bellatlantic.net      http://www.holdenweb.com/



More information about the Python-list mailing list