Issue 13872: socket.detach doesn't mark socket._closed (original ) (raw )Created on 2012-01-26 12:57 by anacrolix , last changed 2022-04-11 14:57 by admin . This issue is now closed .
Messages (5)
msg152005 - (view)
Author: Matt Joiner (anacrolix)
Date: 2012-01-26 12:57
socket.socket.detach doesn't mark the socket._closed flag. The flag is specific to the Python wrapper, so the fix is put there. Test included.
msg152247 - (view)
Author: Antoine Pitrou (pitrou) *
Date: 2012-01-29 17:23
> socket.socket.detach doesn't mark the socket._closed flag. Well, does it have to? It's only an internal detail, it's not exposed as a public API.
msg155912 - (view)
Author: Matt Joiner (anacrolix)
Date: 2012-03-15 17:08
Yes it should. A cursory glance shows that __repr__ returns incorrect if _closed is not marked, and an unnecessary mop-up call to socket.close is avoided.
msg157236 - (view)
Author: Roundup Robot (python-dev)
Date: 2012-03-31 23:08
New changeset 3a220feafa15 by Antoine Pitrou in branch '3.2': Issue #13872 : socket.detach() now marks the socket closed (as mirrored in the socket repr()). http://hg.python.org/cpython/rev/3a220feafa15 New changeset d2f0c3eb1eed by Antoine Pitrou in branch 'default': Issue #13872 : socket.detach() now marks the socket closed (as mirrored in the socket repr()). http://hg.python.org/cpython/rev/d2f0c3eb1eed
msg157237 - (view)
Author: Antoine Pitrou (pitrou) *
Date: 2012-03-31 23:09
Thank you Matt. I've now committed the patch in relevant versions.
History
Date
User
Action
Args
2022-04-11 14:57:26
admin
set
github: 58080
2012-03-31 23:09:03
pitrou
set
status: open -> closedversions: - Python 2.6, Python 3.1, Python 2.7messages: + resolution: fixedstage: resolved
2012-03-31 23:08:02
python-dev
set
nosy: + python-dev messages: +
2012-03-15 17:08:54
anacrolix
set
nosy: + vstinner , giampaolo.rodola , stutzbach messages: +
2012-02-01 20:30:36
jcea
set
nosy: + jcea
2012-01-29 17:23:15
pitrou
set
messages: +
2012-01-29 15:37:50
neologix
set
nosy: + pitrou
2012-01-26 12:57:31
anacrolix
create