[Python-Dev] fp vs. fd

Eric S. Raymond esr@snark.thyrsus.com
Tue, 6 Feb 2001 14:06:00 -0500


There are a number of places in the Python library that require a
numeric file descriptor, rather than a file object.  This complicates
code slightly and (IMO) breaches the wrapper around the file-object
abstraction (which Guido says is only supposed to depend on
stdio-level stuff).

Are there design reasons for this, or is it historical accident?

If the latter, I'll go through and fix these to accept either an fd
or an fp.  And fix the docs, too.
-- 
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>

Non-cooperation with evil is as much a duty as cooperation with good.
	-- Mohandas Gandhi