[issue17675] show addresses in socket.__repr__

2013-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset e68bd20b5434 by Giampaolo Rodola' in branch 'default': attempt to fix bb failure as per http://bugs.python.org/issue17675#msg186595 http://hg.python.org/cpython/rev/e68bd20b5434 -- ___ Python tracker

[issue17675] show addresses in socket.__repr__

2013-04-11 Thread Zachary Ware
Zachary Ware added the comment: The new tests fail on Windows, see for example http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/1763/steps/test/logs/stdio It can be fixed on Windows by moving the `s.bind(('127.0.0.1', 0))` line above the `self.assertIn('laddr', repr(

[issue17675] show addresses in socket.__repr__

2013-04-10 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement ___ Python tracker _

[issue17675] show addresses in socket.__repr__

2013-04-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1410b7790de6 by Giampaolo Rodola' in branch 'default': Fix issue #17675: make socket repr() provide local and remote addresses (if any). http://hg.python.org/cpython/rev/1410b7790de6 -- nosy: +python-dev ___

[issue17675] show addresses in socket.__repr__

2013-04-09 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Added file: http://bugs.python.org/file29761/socket-repr2.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue17675] show addresses in socket.__repr__

2013-04-09 Thread STINNER Victor
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

[issue17675] show addresses in socket.__repr__

2013-04-09 Thread Charles-François Natali
Charles-François Natali added the comment: +1 from me. Any info that can help debugging is a good thing (calling getsockname() on an non-connected socket will raise an error that will get cacthed, but there's not much we can do about it). -- nosy: +neologix ___

[issue17675] show addresses in socket.__repr__

2013-04-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: This sounds ok to me. It will indeed make things clearer in tests. -- ___ Python tracker ___ ___ Pyt

[issue17675] show addresses in socket.__repr__

2013-04-09 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue17675] show addresses in socket.__repr__

2013-04-09 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': This is useful, for example, when running tests as "python3 -Wa" and you bump into: ResourceWarning: unclosed With this we'd get: If desirable, I will add some tests. -- components: Library (Lib) files: socket-repr.patch keywords: patch messa