[Tutor] HTML Parser woes
Alan Gauld
alan.gauld at btinternet.com
Tue Mar 4 19:58:12 CET 2014
On 04/03/14 18:19, spir wrote:
>>>> As you can see I'm picking up the class attribute and
>>>> its value but the conditional test for x165 is failing.
>>>
>>> It's "x L 65", not "x ONE 65".
>>>
> I'm curious what font you use such that you even _can_ confuse '1' and
> 'l' in reading (modern fonts are made to avoid such issues, like between
> 'O' and '0').
It's the default font in the Pythonwin IDE.
There is a difference when you print them side by side
but it is minimal.
I just checked and it is CourierNew, Regular, size 10pt.
I should probably change it (although aside from this issue
I like it)!
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list