homepage

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.

Author vstinner
Recipients ajaksu2, chris.mahan, giampaolo.rodola, vstinner
Date 2009年01月05日.23:43:45
SpamBayes Score 0.11816362
Marked as misclassified No
Message-id <1231199026.41.0.541217341461.issue4791@psf.upfronthosting.co.za>
In-reply-to
Content
New patch:
 - Change _socket.fileno() behaviour: raise socket.error("I/O 
operation on closed socket") (instead of returning -1) if the socket 
is closed
 - Change SocketIO.fileno(): raise a socket.error("I/O operation on 
closed socket") if the file is closed, even if the socket is still 
open
TODO: Check all operations on closed _socket, socket or SocketIO and 
make sure that it raises also an error.
exakrun on IRC:
 What's the fascination with -1?
 Isn't this Python? How about an exception? Or at least a different 
type... None, perhaps?
 Returning -1 is what you would do in a language like C where you 
*can't* do something nice.
History
Date User Action Args
2009年01月05日 23:43:46vstinnersetrecipients: + vstinner, giampaolo.rodola, ajaksu2, chris.mahan
2009年01月05日 23:43:46vstinnersetmessageid: <1231199026.41.0.541217341461.issue4791@psf.upfronthosting.co.za>
2009年01月05日 23:43:45vstinnerlinkissue4791 messages
2009年01月05日 23:43:45vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /