Issue 15032: Provide a select.select implemented using select.poll (original) (raw)
Issue15032
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.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/59237
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) * ![]() |
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) * ![]() |
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) * ![]() |
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) * ![]() |
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:31 | admin | set | github: 59237 |
2013-12-11 04:35:31 | gregory.p.smith | set | status: open -> closedresolution: out of datestage: resolved |
2013-12-11 03:09:13 | eric.araujo | set | nosy: + eric.araujo, neologixmessages: + |
2012-10-18 04:07:22 | gregory.p.smith | set | messages: + |
2012-10-18 00:25:22 | giampaolo.rodola | set | nosy: + giampaolo.rodolamessages: + |
2012-06-07 21:34:30 | jcea | set | nosy: + jcea |
2012-06-07 21:00:02 | gregory.p.smith | create |