Bill Janssen added the comment:
That's because the socket.py code has been adapted (the first word I wrote
there was "perverted" :--) to deal with this case. That is, the close() has
been rendered meaningless because of the explicit reference counting in
socket.py. But the right solution is to not close the socket till the
application is done with it; that is, transfer the responsibility for the
socket to the part of the application which is still using it. I'm not sure
that just fixing this one case will remove the need for the explicit
reference counting in socket.py, but this is the case that I noticed.
On Nov 26, 2007 1:11 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote:
>
> Guido van Rossum added the comment:
>
> Bill, is there a code example that should work but breaks because of
> that close()? ATM, there doesn't seem to be anything in the tests that
> breaks...
>
> __________________________________
> Tracker <[EMAIL PROTECTED]>
> <http://bugs.python.org/issue1348>
> __________________________________
>
Added file: http://bugs.python.org/file8814/unnamed
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1348>
__________________________________
That's because the socket.py code has been adapted (the first word I wrote
there was "perverted" :--) to deal with this case. That is, the
close() has been rendered meaningless because of the explicit reference
counting in
socket.py. But the right solution is to not close the socket till the
application is done with it; that is, transfer the responsibility for the
socket to the part of the application which is still using it. I'm
not sure that just fixing this one case will remove the need for the explicit
reference counting in
socket.py, but this is the case that I noticed.<br><br><div
class="gmail_quote">On Nov 26, 2007 1:11 PM, Guido van Rossum <<a
href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>> wrote:<br><blockquote
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin:
0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Guido van Rossum added the comment:<br><br>Bill, is there a code example
that should work but breaks because of<br>that close()? ATM, there
doesn't seem to be anything in the tests that<br>breaks...<br><div><div>
</div><div class="Wj3C7c"><br>__________________________________<br>Tracker
<<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>><br><<a
href="http://bugs.python.org/issue1348"
target="_blank">http://bugs.python.org/issue1348
</a>><br>__________________________________<br></div></div></blockquote></div><br>
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com