[vtkusers] reading/writing standard input/output using python
Dominik Szczerba
domi at vision.ee.ethz.ch
Thu Sep 14 14:15:45 EDT 2006
Hi David's,
David Gobbi wrote:
> Hi Dominik,
>
> If you "import sys" then you can read from "sys.stdin" and write to
> "sys.stdout" but I'm not sure if that is what you are asking.
>
> If you are wondering if you can call "SetStream(sys.stdin)" from python,
> then the answer is unfortunately no. The python wrappers do not connect
This is exactly what I want and I tried that already (doest work)...
> python streams to C++ streams. If you want, you can add this to the
> bugtracker as a desired feature.
Will it work from C++?
Thanks,
Dominik
>
> - David
>
>
> David Cole wrote:
>> What do you mean by "from python"... Do you mean more than just
>> accessing the built-in python functions like "print" and "input()" /
>> "raw_input()"...?
>>
>> Dominik Szczerba wrote:
>>
>>> Hi,
>>> Is it at all possible to read/write stdin/stdout from python? I see
>>> vtkInputStream class, but it only has SetStream defined for
>>> std::istream...
>>> Thanks for any hints,
>>> Dominik
>>
>> _______________________________________________
>> This is the private VTK discussion list. Please keep messages
>> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
--
Dominik Szczerba, Ph.D.
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi
More information about the vtkusers
mailing list