A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/300855.html below:

named pipe input

named pipe input named pipe inputmax(01)* max2 at fisso.casa
Thu Sep 1 16:45:05 EDT 2005
Eric Nieuwland wrote:
> max(01)* wrote:
> 
>> $ cat file_input_3.py
>> #!/usr/bin/python
>>
>> import sys
>>
>> MIAPIPE = open("una_pipe", "r")
>>
>> for riga in MIAPIPE:
>>    print riga,
>> ...
>> [...]
>> BUT if i try to do the same with the python code, something different
>> happens: i have to type ALL the lines on console #2 and complete the cat
>> command (ctrl-d) before seeing the lines echoed on console #1.
> 
> 
> You could try:
> 
> for riga in MIAPIPE:
>     print riga # NO COMMA!
>     sys.stdout.flush()
> 

doesn't work! :-(

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4