|
This is a bug. It has never worked—although it would be
great if it did. As noted in socket.__doc__, socket.makefile() (which
urllib.urlopen() depends on) is not implemented. We’re aware of the
problem, and I’ve filed a bug at http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=1368
to track it. Here’s the long technical explanation why makefile() is
missing: CPython actually implements the socket module in two parts:
_socket.pyd (the main implementation written in C) and socket.py (a thin
wrapper written in Python). We originally planned to implement only the _socket
module (in C#) and have people use it with the standard socket.py module.
However, we discovered that socket.py depends on CPython’s refcounting
garbage collector work correctly, and so we had to modify our socket module to
work without socket.py. Unfortunately, makefile() is one of the things that socket.py
provides, and we haven’t had time yet to implement it. --Bruce From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Raath I'm getting an error trying to
use urllib - AttributeError: 'socket' object has no attribute 'makefile' Using
1.0 RC1. Not sure if this has ever worked - get NotImplementedError:
getaddrinfo() is not currently implemented in the Beta 9. |
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
