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.

classification
Title: Provide a select.select implemented using select.poll
Type: enhancement Stage: resolved
Components: Versions: Python 3.3
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: eric.araujo, giampaolo.rodola, gregory.p.smith, jcea, neologix
Priority: normal Keywords:

Created on 2012-06-07 21:00 by gregory.p.smith, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
poll_select-gps001.txt gregory.p.smith, 2012-06-07 21:00 untested prototype
Messages (4)
msg162498 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2012-06-07 21:00
Many random bits of the standard library were originally written using select.select.  This is an ancient API that is available everywhere, but these days you'd be hard pressed to find _any_ system that does not implement the superior poll() API which does not suffer from the file descriptor limits problem of select().

A select.select() work-a-like should be possible to write that is implemented using poll.poll().

I am attaching my untested work in progress version of something like that as I don't have time to work on this further at the moment.  Someone else can pick it up if desired. (sorry about the code being in Google style rather than PEP-8)
msg173221 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2012-10-18 00:25
It's not clear to me how you intend to provide this exactly. 
To me it looks like a good candidate for a recipe, otherwise I don't see it as a good fit for the stdlib.
msg173229 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2012-10-18 04:07
indeed, i don't know that there is any point to this idea.

i'm all for just getting rid of all uses of select in the stdlib and making them poll only in 3.4 unless someone can point to a modern system that does not support poll.
msg205879 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2013-12-11 03:09
This may be obsoleted by the new selectors module.
History
Date User Action Args
2022-04-11 14:57:31adminsetgithub: 59237
2013-12-11 04:35:31gregory.p.smithsetstatus: open -> closed
resolution: out of date
stage: resolved
2013-12-11 03:09:13eric.araujosetnosy: + eric.araujo, neologix
messages: + msg205879
2012-10-18 04:07:22gregory.p.smithsetmessages: + msg173229
2012-10-18 00:25:22giampaolo.rodolasetnosy: + giampaolo.rodola
messages: + msg173221
2012-06-07 21:34:30jceasetnosy: + jcea
2012-06-07 21:00:02gregory.p.smithcreate