[vtkusers] reading/writing standard input/output using python
David Gobbi
dgobbi at atamai.com
Thu Sep 14 14:00:07 EDT 2006
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
python streams to C++ streams. If you want, you can add this to the
bugtracker as a desired feature.
- 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
>
More information about the vtkusers
mailing list