[FRPythoneers] Signal Interrupt

Erno Kuusela erno at iki.fi
Mon Aug 28 09:12:20 MDT 2000


hello :)

| 	try: (r,w,e) = select.select (r,w,e, timeout)
| 	except select.error: continue

it is good to test for the exact error code like so:

import errno
try:
	select.select(...)
except select.error (nr, msg):
	if nr == errno.EINTR:
		# go on with life as usual
		pass
	else:
		# re-raise the exception
		raise

otherwise you might get into a nasty loop if the error is something
else...

i'm sure jafo knows this, i'm just trying to propagate good habits :)

   -- erno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 464 bytes
Desc: not available
URL: <http://lists.community.tummy.com/pipermail/frpythoneers/attachments/20000828/a68c9498/attachment.pgp>


More information about the FRPythoneers mailing list