Santoso Wijaya <santoso.wij...@gmail.com> added the comment:

> this will lock

I should expect so! recvfrom is a blocking method. The interpreter will block 
on said socket until (if recvfrom) data arrives from the remote end of the 
socket.

sendto is non-blocking, though. And it works for me:

Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
>>> sock.sendto('data', ('localhost', 1005))
4
>>>

----------
nosy: +santa4nt

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11631>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to