Proposed extension to file constructor

Steven Taschuk staschuk at
Tue Jun 3 22:18:51 CEST 2003

Quoth Taral:
> I needed to extend popen functionality, so I modified the file
> constructor to optionally take a file descriptor. It was, in my opinion,
> the minimum way to do it while preserving isinstance(x, file).

Why is it necessary to preserve isinstance(x, file) in your usage
scenario?  Most uses of files require only that the object be
sufficiently file-like.

Steven Taschuk                               staschuk at
"What I find most baffling about that song is that it was not a hit."
                                          -- Tony Dylan Davis (CKUA)

More information about the Python-list mailing list