file objects choices?

Stefan Schwarzer sschwarzer at sschwarzer.net
Mon Mar 17 16:18:41 EST 2003


e y suzuki wrote:
> are there any existing python file i/o types that can be represented
> by file objects other than:
>     -direct files (regular, directories) specified for the open function
>     -stdin, stdout, stderr streams via sys module
>     -input from piped commands of output from program executed by os/
>         another program
> ?

There are also files generated from sockets. See the socket module.

Also some third-party modules/extensions provide file-like interfaces or even
virtual file systems.

> i've checked python.org, and didn't find anything interesting.

What do you mean by "interesting"? Why do you ask in the first place?

Stefan





More information about the Python-list mailing list