BIG problem if readline strips newlines

Aahz Maruch aahz at panix.com
Wed Jun 13 19:27:38 CEST 2001


In article <kMLV6.9570$Ts6.627720 at typhoon.we.rr.com>,
Pete Shinners <shredwheat at mediaone.net> wrote:
>
>i guess there would just be a problem with the
>while 1 idiom
>
>  while 1:
>    line = file.readline(chomp=1)
>    if not line: break
>
>not as big a problem as i originally thought. not with
>xreadlines and other new looping  methods that get us
>away from the while 1 standard

Not even a problem at all, given that anyone using a Python with a chomp
mode *has* to have xreadlines() (and probably iterators).
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Hugs and backrubs -- I break Rule 6                 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista   

"Just because I'm selling you into slavery doesn't mean we can't be
friends."  B-movie cliche Hall of Fame  (_Bounty Hunter: 2002_)



More information about the Python-list mailing list