Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of select.select vs select.poll #1

Open
doc-hex opened this issue Aug 5, 2020 · 0 comments
Open

Use of select.select vs select.poll #1

doc-hex opened this issue Aug 5, 2020 · 0 comments

Comments

@doc-hex
Copy link

doc-hex commented Aug 5, 2020

This code is using uselect.select() to block for events. However, I want to run the code under the Unix port of micropython (and esp32). That port doesn't provide the select method, and assumes everyone wants to use the superior poll object interface. The docs also have pretty strong language about select.select(): This function is provided by some MicroPython ports for compatibility and is not efficient. Usage of Poll is recommended instead. see here

It doesn't look hard to rework to use poll() but I'm surprised it wasn't done already and I'm thinking this might be a deliberate choice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant