trying to read from pipe

Mike Tibbs (tibbs@dopey.si.com)
Wed, 31 Aug 1994 20:39:35 GMT

Anyone,

Why is this failing?

>>> from posix import *
>>> fd = popen('ls', 'r')
>>> s = read(fd, 4)
Traceback (innermost last):
File "<stdin>", line 1
TypeError: bad argument list (format '(ii)')

>>> close(fd)
Traceback (innermost last):
File "<stdin>", line 1
TypeError: bad argument list (format 'i')

There's something wrong with fd, but I don't know what.
I'm on Sun 4.1.3, python 1.0.3

Gratefull for your assistance,

- Mike Tibbs
- tibbs_michael@si.com