I can recommend you to read pyserial documentation and look to the examples. Browsing through this discussion group can help you a lot as well. Generally if the timeout is set to 0 (zero) the code will wait and wait and wait till the data will arrive to the serial port (if there is not data on the serial port, you can wait "forever" and you can think your code is "frozen" :) ) Because of that, you can set the timeout, so after some time of waiting for the data (when the data do not arrive) the code continues on the next line.
Try to experiment a little bit with some simple and short code first, so you will be able to understand how to communicate with the serial port. HTH Petr Jakes -- http://mail.python.org/mailman/listinfo/python-list