[issue17675] show addresses in socket.__repr__

STINNER Victor report at bugs.python.org
Tue Apr 9 23:47:32 CEST 2013


STINNER Victor added the comment:

+1 for the idea, +1 for the need of tests.

About the patch: you may use a try/except for getsockname(), and another for getpeername().

----------
nosy: +haypo

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17675>
_______________________________________


More information about the Python-bugs-list mailing list