HTMLParser problems.

John J. Lee jjl at pobox.com
Sat Nov 1 08:02:04 EST 2003


Peter Otten <__peter__ at web.de> writes:

> 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.

I was referring to the fact that (despite what he said), his code did
.append(-1), not .append("-1").  But only the OP knows what he really
meant to do.


John




More information about the Python-list mailing list