Servando Garcia wrote:
> Hello list
> I am on challenge 5. I think I need to some how download a file. I have 
> been trying like so
> 
> X=urllib.URLopener(name,proxies={'http':'URL').distutils.copy_file('SomeFileName')
>  

urlopener() returns a file-like object - something that behaves like an open 
file. Try
x = urllib.urlopener(name)
data = x.read()

Kent

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to