[Python-porting] HTMLParser in 2to3

Fred Drake fdrake at acm.org
Wed Dec 17 03:06:17 CET 2008


On Dec 16, 2008, at 3:58 PM, Christof Hoeke wrote:
> not to want to split hairs but the second example ``from HTMLParser  
> import HTMLParser`` actually imports the HTMLParser class and not  
> the module so I think my original thinking was right?


Please, split hairs!

Yes, your original proposed re-writes are correct.


   -Fred

-- 
Fred Drake   <fdrake at acm.org>



More information about the Python-porting mailing list