Steve Holden 写道:
> Good catch, John, I suspect this is a possibility so I've added the
> following note:
>
> """The Windows 2.4.1 build doesn't show this error, but the Cygwin 2.4.1
> build does still have uncollectable objects after a urllib2.urlopen(),
> so there may be a platform dependency her
John J. Lee wrote:
> Steve Holden <[EMAIL PROTECTED]> writes:
> [...]
>
>> File "/usr/lib/python2.4/urllib2.py", line 996, in do_open
>> raise URLError(err)
>>urllib2.URLError:
>>
>>Looking at that part of the course of urrllib2 we see:
>>
>> headers["Connection"] = "close"
>>
Steve Holden <[EMAIL PROTECTED]> writes:
[...]
>File "/usr/lib/python2.4/urllib2.py", line 996, in do_open
> raise URLError(err)
> urllib2.URLError:
>
> Looking at that part of the course of urrllib2 we see:
>
> headers["Connection"] = "close"
> try:
> h.r
Johnny Lee wrote:
> Steve Holden wrote:
>
>>Steve Holden wrote:
>>
>>>Johnny Lee wrote:
[...]
>>
>>So my conclusion is that there's something in the Cygwin socket module
>>that causes problems not seen under other platforms.
>>
>>I couldn't find any obviously-related error in the Python bug tracke
Steve Holden wrote:
> Steve Holden wrote:
> > Johnny Lee wrote:
> > [...]
> >
> >>I've sent the source, thanks for your help.
> >>
> >
> > [...]
> > Preliminary result, in case this rings bells with people who use urllib2
> > quite a lot. I modified the error case to report the actual message
> >
Steve Holden wrote:
> Johnny Lee wrote:
> [...]
>
>>I've sent the source, thanks for your help.
>>
>
> [...]
> Preliminary result, in case this rings bells with people who use urllib2
> quite a lot. I modified the error case to report the actual message
> returned with the exception and I'm see
Johnny Lee wrote:
> Steve Holden wrote:
>
>>Johnny Lee wrote:
>>
>>>Alex Martelli wrote:
>>>
>>>
Johnny Lee <[EMAIL PROTECTED]> wrote:
...
> try:
> webPage = urllib2.urlopen(url)
> except urllib2.URLError:
...
> webPage.close()
>
Steve Holden wrote:
> Johnny Lee wrote:
> > Alex Martelli wrote:
> >
> >>Johnny Lee <[EMAIL PROTECTED]> wrote:
> >> ...
> >>
> >>> try:
> >>> webPage = urllib2.urlopen(url)
> >>> except urllib2.URLError:
> >>
> >> ...
> >>
> >>> webPage.close()
> >>> return True
> >>>-
Johnny Lee wrote:
> Alex Martelli wrote:
>
>>Johnny Lee <[EMAIL PROTECTED]> wrote:
>> ...
>>
>>> try:
>>> webPage = urllib2.urlopen(url)
>>> except urllib2.URLError:
>>
>> ...
>>
>>> webPage.close()
>>> return True
>>>
>>>
>>>
Alex Martelli wrote:
> Johnny Lee <[EMAIL PROTECTED]> wrote:
>...
> >try:
> > webPage = urllib2.urlopen(url)
> >except urllib2.URLError:
>...
> >webPage.close()
> >return True
> >
> >
> >But every time when I ra
Johnny Lee <[EMAIL PROTECTED]> wrote:
...
>try:
> webPage = urllib2.urlopen(url)
>except urllib2.URLError:
...
>webPage.close()
>return True
>
>
>But every time when I ran to the 70 to 75 urls (that means 70-75
>
11 matches
Mail list logo