I wanna try "socketpair
" function in my "discovering and studying" python program language. Im creating socketpair with following command:
import socket
parent, child = socket.socketpair()
and then I get error: Python: AttributeError: 'module' object has no attribute 'socketpair'
Im working in eclipse, in windows. I suppouse socketpair working only in UNIX enviroment, but socket module should include socketpair
anyway.
How should I fix it?
thanks
Regards
At the moment this is not available on Windows, but it is in development, as you can see in related bug.
You can find workaround over the net, like here: http://code.activestate.com/recipes/525487-extending-socketsocketpair-to-work-on-windows/