[Patches] [ python-Patches-525945 ] urllib: Defering open call for file urls

noreply@sourceforge.net noreply@sourceforge.net
Tue, 05 Mar 2002 06:09:41 -0800


Patches item #525945, was opened at 2002-03-05 08:59
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=525945&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Walter Dörwald (doerwalter)
Assigned to: Nobody/Anonymous (nobody)
Summary: urllib: Defering open call for file urls

Initial Comment:
This patch changes the handling of local files in 
urllib.urlopen() and urllib2.urlopen(). Opening the 
file is deferred until the first time read(), readline
(), readlines() or fileno() is called.

This makes it possible to retrieve the header 
information for all URLs via urlopen in a uniform way, 
without actually having to open the file.


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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-03-05 09:09

Message:
Logged In: YES 
user_id=6380

I don't understand.  Can you explain why you care about
this?

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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=525945&group_id=5470