Peter,

 

Sorry for the trouble. This is a known issue that we’re tracking in our bug database at http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=548.

 

For a full explanation of the situation, see http://lists.ironpython.com/pipermail/users-ironpython.com/2006-June/002605.html.

 

To answer your second question: most, but not all, of the Python standard library works with IronPython. We’re working to support as much of it as possible, but there are still areas that are missing functionality, as you have discovered. If you run into any other problems, please let us know so that we can prioritize our work accordingly.

 

--Bruce

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of peter lin
Sent: Tuesday, July 18, 2006 10:02 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Can not use httplib in ironpython beta9?

 

It seems the method getaddrinfo() is not currently implemented.
I test another module urllib, which uses  httplib.

import sys
sys.path.append(r"c:\python24\lib")

import urllib
data = "" ('http://www.google.com').read()
print data

See the error as follows.

Traceback (most recent call last):
  File c:\dev_tool\IronPython-1.0-Beta9\rsslibtest.py , line 37, in Initialize
  File c:\python24\lib\urllib.py, line 82, in urlopen
  File c:\python24\lib\urllib.py, line 194, in open
  File c:\python24\lib\urllib.py, line 313, in open_http
  File c:\python24\lib\httplib.py, line 798, in endheaders
  File c:\python24\lib\httplib.py, line 679, in _send_output
  File c:\python24\lib\httplib.py, line 646, in send
  File c:\python24\lib\httplib.py, line 613, in connect
  File , line 0, in GetAddrInfo##120
NotImplementedError: getaddrinfo() is not currently implemented

I test it with python.exe , it works.
So, actually, Is it ok to use all python standard library with ipy?

 

_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to