Re: equivalent of perl $/

Aaron Watters (aaron@funcity.njit.edu)
Thu, 19 Jan 1995 13:48:56 GMT

In article <9501161704.AA26014=guido@zeus.cwi.nl> Guido.van.Rossum@cwi.nl writes:
>> Does python have an equivalent of perl's $/ variable?...
>
>...Let's see how we can simulate this in
>Python... If you don't mind reading your file in all at once, try
>this:....

For really big files, maybe I would mind. I don't see why an
alternate f.readline_terminated(terminator) couldn't be added
to fileobject.c. Maybe something more "OO" style like a "terminator"
attribute to files could be in order?

Perl5 steals from Python, maybe Python should
return the complement in this case, among others. -a.

---
 Hold on!  Just because pasty-faced pudgy/scrawny four-eyed geeks
 end up making lots of money, driving fancy cars, and playing with
 groovy toys, doesn't mean we're not victims too!  We need a good
 handle: maybe The Technophobically Impaired?  Other suggestions?