HTMLParser problems.

Peter Otten __peter__ at web.de
Sat Nov 1 03:20:43 EST 2003


John J. Lee 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").

Actually, I'm not, any non-empty string would have done as well, given the
original poster's parser implementation.

Peter




More information about the Python-list mailing list