Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue3429] urllib.urlopen() return type

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jul 22, 2008, 10:17 AM

Post #1 of 2 (69 views)
Permalink
[issue3429] urllib.urlopen() return type

New submission from ThomasH <thomas.bugzilla[at]gmx.net>:

The file-like object returned by urllib.urlopen() should be documented
like a proper class. The textual description under the urlopen() method
is less approachable and breaks the usual format of a class documentation.

Maybe the return type should be changed to be a httplib.HTTPResponse
object (but that's a separate issue).

----------
assignee: georg.brandl
components: Documentation
messages: 70156
nosy: ThomasH, georg.brandl
severity: normal
status: open
title: urllib.urlopen() return type
type: feature request
versions: Python 2.5

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue3429>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 22, 2008, 10:34 AM

Post #2 of 2 (63 views)
Permalink
[issue3429] urllib.urlopen() return type [In reply to]

Benjamin Peterson <musiccomposition[at]gmail.com> added the comment:

I'll let Georg make the final determination about this, but IMO this is
unneeded. File-like objects are so common in Python code, that just
telling what methods are supported should be fine.

----------
nosy: +benjamin.peterson

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue3429>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.