Overriding 'select'

David Allen s2mdalle at titan.vcu.edu
Tue Jun 20 21:37:40 EDT 2000


> So, add this to your Connection object:
> 
>     def fileno(self):
>         return self.socket.fileno()
> 
> and all should be well. The select.select() returns the objects passed
> in, not their filedescriptor, so you do not need to do your own
> bookkeeping.

This absolutely works like a charm.  Thanks a lot.  Much faster than
what I was using too.  :)

-- 
David Allen
http://opop.nols.com/
----------------------------------------
It's that time of year again, Defcon has descended upon us. Time to venture
to SYN City to see the lights, meet strange new people, and create new
blurs we later dub memories.
	-- Attrition.org




More information about the Python-list mailing list