Dino Viehland wrote: > Certainly sounds like a bug - did this work before alpha 8? >
I don't *think* it has ever worked - but problems with urllib/urllib2 seem to be one of the most common frustrations with IronPython for people coming from Python so I thought it was worth flagging. Michael > -----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 > 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 System, line unknown, in Read > File System, line unknown, in Receive > File System, line unknown, in Receive > File c:\Python24\Lib\urllib.py, line 248, in retrieve > File System, line unknown, in Read > File , line unknown, in ##269 > File c:\Python24\Lib\urllib.py, line 89, in urlretrieve > IOError: Unable to read data from the transport connection: Cannot > access a disp > osed object. > Object name: 'System.Net.Sockets.Socket'.. > > > > Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit > (Intel)] on > win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> import urllib > >>> > urllib.urlretrieve('http://python-twitter.googlecode.com/files/python-twitte > r-0.5.tar.gz', 'python-twitter.tar.gz') > ('python-twitter.tar.gz', <httplib.HTTPMessage instance at 0x01864E40>) > >>> > > _______________________________________________ > Users mailing list > Users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > _______________________________________________ > Users mailing list > Users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > _______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com