This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年01月26日 12:57 by anacrolix, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| socket-detach-mark-closed.patch | anacrolix, 2012年01月26日 12:57 | |||
| 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) * (Python committer) | 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) (Python triager) | 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) * (Python committer) | 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 -> closed versions: - Python 2.6, Python 3.1, Python 2.7 messages: + msg157237 resolution: fixed stage: resolved |
| 2012年03月31日 23:08:02 | python-dev | set | nosy:
+ python-dev messages: + msg157236 |
| 2012年03月15日 17:08:54 | anacrolix | set | nosy:
+ vstinner, giampaolo.rodola, stutzbach messages: + msg155912 |
| 2012年02月01日 20:30:36 | jcea | set | nosy:
+ jcea |
| 2012年01月29日 17:23:15 | pitrou | set | messages: + msg152247 |
| 2012年01月29日 15:37:50 | neologix | set | nosy:
+ pitrou |
| 2012年01月26日 12:57:31 | anacrolix | create | |