arduino python serial available

Hey, i have a small python query. I have the following line to get serial input in python from the arduino

print ser.readline()

The problem with this line is that it waits for the arduino to send a serial and will not continue unless it fetches a serial input from the arduino. Is there a function in the python serial to check if there is any serial input present ( something like serial.available() in arduino ) and then only input serial? else just continue doing whatever else the python script is supposed to do?

Thanks a lot..

Have a look at the inWaiting() method in the pySerial doc here:

http://pyserial.sourceforge.net/pyserial_api.html

See also "bitty.py", a serial to network proxy, here:

http://bitlash.net/wiki/bitty.py

Best regards,

-br

http://entropymouse.com

perfect.. just what i wanted.. thanks a ton..