Re: error executing "import html.parser" from a script

2012-10-19 Thread Hans Mulder
On 19/10/12 11:15:45, Paul Volkov wrote: > What is this madness? That's because your script is called "html.py". If you import html.parser, Python first imports html, then checks that it's a package and contains a module named "parser". When Python imports html, it searches for a file named "htm

error executing "import html.parser" from a script

2012-10-19 Thread Paul Volkov
What is this madness? I have Python 3.3.0 installed on Windows XP. I do not have Python 2 (but I had it before). I do the following steps: 1. Import from an interactive session (no problems) >python Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)] on win32 Typ