newbie asks how to capture embeded python output
Mon, 2 May 1994 15:38:16 GMT


I've been playing around with python embeded in a NeXTSTEP app. I'd like
to capture the python output going to stdout and stderr and pass it into
my text objects. The only means I've found so far is to dup2 the
stdout/stderr file descriptors, close them, and read the stdout myself.
Does python have a more elegant way to do this built in ? I've thus far
resisted running python using objc subprocess object, which has the above
redirection capability built in.

Thanks for any help...

Rob LaBelle