Peter Otten <__peter__ at web.de> writes: > Sean Cody wrote: [...] > The simplest solution is to replace the above line with > > parser.feed(socket.read().replace(" ", "NaN") [...] That's platform-dependent, if you're relying on float("NaN"). John