STINNER Victor added the comment:

> I didn't know getsockname() could return None...

Me neither. Maybe it's a bug? makesockaddr() returns None if addrlen equals 0:  
                                 
             
    if (addrlen == 0) {                                                         
  
        /* No address -- may be recvfrom() from known socket */                 
  
        Py_RETURN_NONE;                                                         
  
    }

----------

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

Reply via email to