[luca] > Here is my code; why after the readline the port close? > > ser = serial.Serial(0) > [...] > ser.readline() > > Why after this the port close.
[Grant] > Because the "ser" object is never used after that point, so it > get's garbage collected and deleted. [Steve] > The "ser" name is still bound to the serial object, surely? A piece of that code has been chopped off by someone's newsreader - it's the body of a method, and ser.readline() is the last line of that method. -- Richie Hindle [EMAIL PROTECTED] -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list