feof status (was: Re: [Python-Dev] Rehabilitating fgets)

Eric S. Raymond esr@thyrsus.com
Sun, 7 Jan 2001 13:30:32 -0500

Tim Peters <tim.one@home.com>:
> I agree an .eof() method would be better than a data member.  Note that
> whenever Python internals hit stream EOF today, they call clearerr(), so
> simply adding an feof() wrapper wouldn't suffice.  Guido seemed to try to
> make sure that feof() would never be useful <0.8 wink>.

That's inconvenient, but only means the internal Python state flag
that feof() would inspect would have to be checked after each read.
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>

"...The Bill of Rights is a literal and absolute document. The First
Amendment doesn't say you have a right to speak out unless the
government has a 'compelling interest' in censoring the Internet. The
Second Amendment doesn't say you have the right to keep and bear arms
until some madman plants a bomb. The Fourth Amendment doesn't say you
have the right to be secure from search and seizure unless some FBI
agent thinks you fit the profile of a terrorist. The government has no
right to interfere with any of these freedoms under any circumstances."
	-- Harry Browne, 1996 USA presidential candidate, Libertarian Party