logo       

Re: Re: using stdout/stderr with python: msg#00148

programming.swig

Subject: Re: Re: using stdout/stderr with python

also sprach Kevin Smith <wxruby@xxxxxxxxxxxxxxx> [2004.05.25.1748 +0200]:
> One way would be to create C functions like GetStdin and
> GetStdout, and wrap them. This way, from Python, you could get
> access to FILE* versions of those streams. Then, you can pass
> those values back into your other functions.

Yes, but I try to avoid that. It's requires changing the library,
does it not? Sure, one could provide an additional C file, but
why??? This must be doable in a better way.

--
Martin F. Krafft Artificial Intelligence Laboratory
Ph.D. Student Department of Information Technology
Email: krafft@xxxxxxxx University of Zurich
Tel: +41.(0)1.63-54323 Andreasstrasse 15, Office 2.18
http://ailab.ch/people/krafft CH-8050 Zurich, Switzerland

Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
Spamtraps: krafft.bogus@xxxxxxxx madduck.bogus@xxxxxxxxxxx

"i wish there was a knob on the tv to turn up the intelligence.
there's a knob called 'brightness', but it doesn't seem to work."
-- gallagher

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise