urllib bug?

Peter Hansen peter at engcorp.com
Sun Sep 1 07:28:49 CEST 2002


Steve Clift wrote:
> 
> Is this *really* a urllib bug, or am I missing something blindingly obvious?
[snip failing example]
> Fails the same way with 2.1. Works OK with 1.5.2 and (IIRC) 2.0.

Works fine here, under Windows 98 SE:

Python 2.2.1 (#34, Apr  9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib
>>> urllib.urlopen('http://www.python.org')
<addinfourl at 8596352 whose fp = <socket._fileobject instance at 0x00832AB0>>
>>> f = urllib.urlopen('http://www.python.org')
>>> f
<addinfourl at 8604976 whose fp = <socket._fileobject instance at 0x00834FA0>>

-Peter



More information about the Python-list mailing list