select.poll() compatibility with cpython #13316
pavelrevak
started this conversation in
General
Replies: 1 comment
-
@pavelrevak MicroPython doesn't have file numbers / file descriptors (except on the unix port, and then only for things that are actually unix files. See #12138 for some recent history here)
Yeah, this is an annoying difference. Honestly I'd probably just use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I see one difference between cpython and micropython implementation of
select.poll()
, where:cpython accepts for register and unregister also objects, but this object must have method
fileno()
but poll.poll() returns always fileno
my question is how to write compatible code? I have these ideas:
or do you have any other compatible but not ugly idea?
what is the reason for this difference?
thanks
Beta Was this translation helpful? Give feedback.
All reactions