[ python-Bugs-944394 ] No examples or usage docs for urllib2

SourceForge.net noreply at sourceforge.net
Sat May 13 18:33:14 CEST 2006


Bugs item #944394, was opened at 2004-04-29 13:02
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=944394&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: None
>Status: Closed
>Resolution: Works For Me
Priority: 5
Submitted By: Chris Withers (fresh)
Assigned to: Nobody/Anonymous (nobody)
Summary: No examples or usage docs for urllib2

Initial Comment:
Hi there,

I'm sure I reported this before, but it's a couple of
major releases later, and there's still no usage docs
for urllib2.

The examples given are too trivial to be helpful, but
I'm guessing people are using the module so there must
be some examples out there somewhere ;-)

With a bit o fhelp from Moshez, I found the docstring
in the module source. At the very least, it'd be handy
if that appeared somewhere at:

http://docs.python.org/lib/module-urllib2.html

But really, mroe extensive and helpful documentation on
this cool new module would be very handy.

Chris

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2006-05-13 18:33

Message:
Logged In: YES 
user_id=21627

fresh, you haven't responded to jjlee's questions from
2006-04-17 16:26, so it is unclear what precisely it is that
you want. In absence of a specific problem description, I'm
closing this as "works for me".

----------------------------------------------------------------------

Comment By: Chris Withers (fresh)
Date: 2006-05-13 17:51

Message:
Logged In: YES 
user_id=24723

wtf?

----------------------------------------------------------------------

Comment By: SourceForge Robot (sf-robot)
Date: 2006-05-12 04:21

Message:
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

----------------------------------------------------------------------

Comment By: Georg Brandl (gbrandl)
Date: 2006-04-27 15:06

Message:
Logged In: YES 
user_id=849994

Chris, I concur with jjlee that suggesting examples is the
best way to get something done. Perhaps, if you're using
urllib2, you could flesh out some examples from your code?

----------------------------------------------------------------------

Comment By: John J Lee (jjlee)
Date: 2006-04-17 16:26

Message:
Logged In: YES 
user_id=261020

Do you have any specific suggestions for what is unhelpful
and/or missing?

Otherwise, nothing is likely to change.

Note that a little was added at the bottom of this page in
2.4, explaining how OpenerDirector uses the handlers to open
URLs:

http://docs.python.org/lib/opener-director-objects.html

Looking at the top-level page, I guess an introduction /
overview would help?  Did you have other stuff in mind too?


----------------------------------------------------------------------

Comment By: Chris Withers (fresh)
Date: 2006-04-17 16:19

Message:
Logged In: YES 
user_id=24723

I still feel there could be more.

I guess the best course, for me, would be to leave this open
but at a really low priority.

However, I probably wouldn't scream too much if the issue
was closed.

----------------------------------------------------------------------

Comment By: John J Lee (jjlee)
Date: 2006-04-15 20:49

Message:
Logged In: YES 
user_id=261020

They are here: http://docs.python.org/lib/urllib2-examples.html

----------------------------------------------------------------------

Comment By: Chris Withers (fresh)
Date: 2006-04-15 20:07

Message:
Logged In: YES 
user_id=24723

Where are these examples you're referring to?

I don't see any at:
http://docs.python.org/lib/module-urllib2.html

I've already commented that the existing ones in the
docstring would be a start but still don't really much help
in taking full advantage of this module.

----------------------------------------------------------------------

Comment By: John J Lee (jjlee)
Date: 2006-04-15 19:34

Message:
Logged In: YES 
user_id=261020

Examples for urllib2 were added some time ago, so I suggest
this bug is closed.

----------------------------------------------------------------------

Comment By: Chris Withers (fresh)
Date: 2004-06-01 10:17

Message:
Logged In: YES 
user_id=24723

I'm certainly willing, but I am totally incapable :-S

The reason I opened this issue is because it would seem that
urllib2 is better the urllib, but seems to be severely
underdocumented, and hence I don't understand how to use it
and so can't provide examples.

As I said in the original submission, including the module's
docstring in the Python module documentation would be a
start, but doesn't cover what appears to be the full
potential of a great module...

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2004-05-31 23:15

Message:
Logged In: YES 
user_id=21627

Are you willing to provide examples?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=944394&group_id=5470


More information about the Python-bugs-list mailing list