[Python-Dev] FW: [Python-Help] Python threads with suncc (Forte 6.1) compiler

Michael Hudson mwh@python.net
05 Aug 2001 14:11:18 -0400

"Tim Peters" <tim.one@home.com> writes:

> [Guido, on reworking select()]
> > Yes, I think we do need this.  PyObject_AsFileDescriptor() calls the
> > fileno() method which could be a Python call.
> Ya, but for me to believe that *matters*, I have to believe people worried
> about high-performance select are passing objects with Python-implemented
> fileno methods to begin with.  That's quite a stretch, isn't it?  They have
> to pay for fileno() calls regardless, the question is only whether they pay
> it once or twice per object.

Posted admittedly without checking any facts:

(1) Doesn't the Python fileno() method issue leave you open to
ridiculous fileno() methods that mutate the list passed in to

(2) AIUI, if you really care about performance you should be using
poll() anyway (tho' obviously this depends on your platform having
poll() in the first place, and I don't have the faintest idea how
widespread it is).


  The ultimate laziness is not using Perl.  That saves you so much
  work you wouldn't believe it if you had never tried it.
                                        -- Erik Naggum, comp.lang.lisp