Import Doesn't Import

Chris Angelico rosuav at gmail.com
Wed Oct 15 20:54:01 EDT 2014


On Thu, Oct 16, 2014 at 11:40 AM, ryguy7272 <ryanshuell at gmail.com> wrote:
> I totally don't understand this language.  Import means import.  Right.  WTF!!!!!

Yes, but import from where? If you ask Python - or any other language
- to "import asfadgt4tfihavzcxvzxcvaerg", do you expect it to succeed?
It doesn't exist.

In this case, you simply want "urllib", not "urllib2". You should be
able to "import urllib" with no problems.

ChrisA



More information about the Python-list mailing list