Re: check if there is data in stdin without blocking

2007-01-15 Thread hg
Gabriel Genellina wrote: > At Monday 15/1/2007 05:55, hg wrote: > >>Well I'm testing under Linux but need support under Windows ... is there >>any way to poll stdin somehow under both plateform ? > > I think you may want this portable getch function: >

Re: check if there is data in stdin without blocking

2007-01-15 Thread Gabriel Genellina
At Monday 15/1/2007 05:55, hg wrote: Well I'm testing under Linux but need support under Windows ... is there any way to poll stdin somehow under both plateform ? I think you may want this portable getch function: -- Gabriel Ge

Re: check if there is data in stdin without blocking

2007-01-15 Thread hg
Paul Boddie wrote: > hg wrote: >> import select > > [...] > >> File "/home/philippe/Desktop/select.py", line 4, in ? > > Consider which module Python is trying to import here: the standard > library select module or your own program? > > Paul Argh ;-) thanks -- http://mail.python

Re: check if there is data in stdin without blocking

2007-01-15 Thread Paul Boddie
hg wrote: > import select [...] > File "/home/philippe/Desktop/select.py", line 4, in ? Consider which module Python is trying to import here: the standard library select module or your own program? Paul -- http://mail.python.org/mailman/listinfo/python-list

Re: check if there is data in stdin without blocking

2007-01-15 Thread hg
Laurent Pointal wrote: > hg a écrit : >> hg wrote: >> >>> Hi, >>> >>> Is there a way ? ... select ? >>> >>> >>> >>> hg >> PS: >> >> import sys >> import select >> >> l_r = select.select([sys.stdin],[],[],0) >> >> gives me: >> File "select.py", line 2, in ? >> import select >> File "/ho

Re: check if there is data in stdin without blocking

2007-01-15 Thread Laurent Pointal
hg a écrit : > hg wrote: > >> Hi, >> >> Is there a way ? ... select ? >> >> >> >> hg > PS: > > import sys > import select > > l_r = select.select([sys.stdin],[],[],0) > > gives me: > File "select.py", line 2, in ? > import select > File "/home/philippe/Desktop/select.py", line 4, in ? >

Re: check if there is data in stdin without blocking

2007-01-15 Thread hg
hg wrote: > Hi, > > Is there a way ? ... select ? > > > > hg PS: import sys import select l_r = select.select([sys.stdin],[],[],0) gives me: File "select.py", line 2, in ? import select File "/home/philippe/Desktop/select.py", line 4, in ? l_r = select.select([sys.stdin],[],[],0

check if there is data in stdin without blocking

2007-01-15 Thread hg
Hi, Is there a way ? ... select ? hg -- http://mail.python.org/mailman/listinfo/python-list