getting an inputStream on a file

jano jnana4 at
Mon Aug 19 08:41:42 CEST 2002

"Erik Max Francis" <max at> wrote in message
news:3D608407.EEDADF3D at
> jano wrote:


> By "stream," they really just mean a "file object," of which sys.stdin
> is an example.  You're passing in a filename, which isn't the same
> thing.  Instead, all you need to do is create a file with it:
> FromXmlStream(file(sys.stdin))
> or
> FromXmlStream(open(sys.stdin))
> for older versions of Python.

Okay. That makes sense now.  Thanks for the help.


More information about the Python-list mailing list