Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

urllib.request.urlretrieve

Name: Anonymous 2010-09-12 13:28

/prog/ care to explain?
this works

import urllib.request
import urllib.parse
urllib.request.urlretrieve("http://dis.4chan.org/prog/","test.txt")

this doesn't

import urllib.request
import urllib.parse
urllib.request.urlretrieve("http://en.wikipedia.org/wiki/Lemon","test.txt")

Name: Anonymous 2010-09-12 13:42

Eat shit and die.

Name: Anonymous 2010-09-12 14:15

Read your fucking error messages.

Name: Anonymous 2010-09-12 14:16

doesn't work

What is this, your first time asking for programming help?  Provide some information besides "doesn't work", like what does happen?, and what value that urlretrieve() shit returns (if it does return anything; I've never really used Python so I've never read the documentation for that stuff, but presumably it will return at least 1 value that may indicate success or some kind of error code).

Name: Anonymous 2010-09-12 14:21

Name: Anonymous 2010-09-12 17:29

Firstly, I agree with >>4, always post the full transcript if you want real help
Secondly, it just looks like a bug, but I don't really care to look into it. You'll probably get a real answer if you post it on comp.lang.python

Name: Anonymous 2010-09-12 18:23

>>6
There's nothing newsgroups like better than lazy incompetents bothering them with what they think are bugs in libraries but are actually not at all.

Name: Anonymous 2010-09-13 1:18

>>2
This.

Name: Anonymous 2010-09-13 1:52

>>7
This pretty much makes up all the content of the newsgroups.  They're like /prog/, but without as many unfunny joke threads.

Name: Anonymous 2011-01-31 20:22

<-- check em dubz

Don't change these.
Name: Email:
Entire Thread Thread List