Message87447
| Author |
MrJean1 |
| Recipients |
MrJean1, alanmcintyre, donmez, facundobatista, giampaolo.rodola, josiahcarlson, mark.dickinson, r.david.murray |
| Date |
2009年05月08日.16:18:45 |
| SpamBayes Score |
0.0024569936 |
| Marked as misclassified |
No |
| Message-id |
<1241799528.09.0.00138242138323.issue5798@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Indeed, the unmodified test_asynchat.py now passes in Python 3.1b1. The
readwrite function in asyncore looks like this now:
def readwrite(obj, flags):
try:
if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL):
obj.handle_close()
else:
if flags & select.POLLIN:
obj.handle_read_event()
if flags & select.POLLOUT: # and obj.connected:
obj.handle_write_event()
if flags & select.POLLPRI: # and obj.connected:
obj.handle_expt_event()
except _reraised_exceptions:
raise
except:
obj.handle_error() |
|