Re: [IronPython] urllib.urlretrieve with IronPython 2a8

2008-03-21 Thread Curt Hagenlocher
, 2008 4:19 PM To: Discussion of IronPython Subject: Re: [IronPython] urllib.urlretrieve with IronPython 2a8 On Feb 18, 2008 4:12 PM, Curt Hagenlocher [EMAIL PROTECTED] wrote: Is it possible that CPython's socket.close method won't actually close the socket while there's still a makefile'd

Re: [IronPython] urllib.urlretrieve with IronPython 2a8

2008-03-21 Thread Curt Hagenlocher
at it tomorrow and respond back. -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Curt Hagenlocher Sent: Monday, February 18, 2008 4:19 PM To: Discussion of IronPython Subject: Re: [IronPython] urllib.urlretrieve with IronPython 2a8 On Feb 18

Re: [IronPython] urllib.urlretrieve with IronPython 2a8

2008-02-18 Thread Dino Viehland
Certainly sounds like a bug - did this work before alpha 8? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Sunday, February 17, 2008 6:27 AM To: Discussion of IronPython Subject: [IronPython] urllib.urlretrieve with IronPython 2a8

Re: [IronPython] urllib.urlretrieve with IronPython 2a8

2008-02-18 Thread Michael Foord
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Sunday, February 17, 2008 6:27 AM To: Discussion of IronPython Subject: [IronPython] urllib.urlretrieve with IronPython 2a8 IronPython 2.0 Alpha (2.0.0.800) on .NET 2.0.50727.1433

Re: [IronPython] urllib.urlretrieve with IronPython 2a8

2008-02-18 Thread Curt Hagenlocher
: [IronPython] urllib.urlretrieve with IronPython 2a8 IronPython 2.0 Alpha (2.0.0.800) on .NET 2.0.50727.1433 Copyright (c) Microsoft Corporation. All rights reserved. import urllib urllib.urlretrieve(' http://python-twitter.googlecode.com/files/python-twitte r-0.5.tar.gz', 'python

Re: [IronPython] urllib.urlretrieve with IronPython 2a8

2008-02-18 Thread Curt Hagenlocher
] urllib.urlretrieve with IronPython 2a8 IronPython 2.0 Alpha (2.0.0.800) on .NET 2.0.50727.1433 Copyright (c) Microsoft Corporation. All rights reserved. import urllib urllib.urlretrieve(' http://python-twitter.googlecode.com/files/python-twitte r-0.5.tar.gz', 'python

Re: [IronPython] urllib.urlretrieve with IronPython 2a8

2008-02-18 Thread Dino Viehland
, but it's not good enough yet. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Monday, February 18, 2008 3:11 PM To: Discussion of IronPython Subject: Re: [IronPython] urllib.urlretrieve with IronPython 2a8 On 18/02/2008, Curt Hagenlocher [EMAIL PROTECTED]mailto:[EMAIL

Re: [IronPython] urllib.urlretrieve with IronPython 2a8

2008-02-18 Thread Michael Foord
a bug - did this work before alpha 8? -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Sunday, February 17, 2008 6:27 AM To: Discussion of IronPython Subject: [IronPython] urllib.urlretrieve with IronPython 2a8

Re: [IronPython] urllib.urlretrieve with IronPython 2a8

2008-02-18 Thread Curt Hagenlocher
On Feb 18, 2008 3:11 PM, Michael Foord [EMAIL PROTECTED] wrote: On 18/02/2008, Curt Hagenlocher [EMAIL PROTECTED] wrote: I should amend this to say that I can *inconsistently* reproduce it. The URL in the original sample always fails with that error, but http://www.microsoft.com has been

Re: [IronPython] urllib.urlretrieve with IronPython 2a8

2008-02-18 Thread Curt Hagenlocher
On Feb 18, 2008 3:34 PM, Curt Hagenlocher [EMAIL PROTECTED] wrote: Here's a simpler way to reproduce the problem: import httplib h = httplib.HTTP('www.google.com') h.putrequest('GET', '/') h.endheaders() a, b, c = h.getreply() fp = h.getfile() fp.read(1024*8) Turning debugging on at a

Re: [IronPython] urllib.urlretrieve with IronPython 2a8

2008-02-18 Thread Curt Hagenlocher
On Feb 18, 2008 4:12 PM, Curt Hagenlocher [EMAIL PROTECTED] wrote: Is it possible that CPython's socket.close method won't actually close the socket while there's still a makefile'd file attacked to the underlying OS socket? And that IronPython's will? Because that's the only explanation I

Re: [IronPython] urllib.urlretrieve with IronPython 2a8

2008-02-18 Thread Dino Viehland
To: Discussion of IronPython Subject: Re: [IronPython] urllib.urlretrieve with IronPython 2a8 On Feb 18, 2008 4:12 PM, Curt Hagenlocher [EMAIL PROTECTED] wrote: Is it possible that CPython's socket.close method won't actually close the socket while there's still a makefile'd file attacked to the underlying

[IronPython] urllib.urlretrieve with IronPython 2a8

2008-02-17 Thread Michael Foord
IronPython 2.0 Alpha (2.0.0.800) on .NET 2.0.50727.1433 Copyright (c) Microsoft Corporation. All rights reserved. import urllib urllib.urlretrieve('http://python-twitter.googlecode.com/files/python-twitte r-0.5.tar.gz', 'python-twitter.tar.gz') Traceback (most recent call last): File