-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
func.__code__ not implemented #2084
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
Comments
The |
And the implementation is obviously trivial: https://github.com/micropython/micropython-lib/blob/master/uasyncio.core/uasyncio/core.py#L11 and is included in an implementation of "asyncio-like" library in the standard micropython-lib: http://forum.micropython.org/viewtopic.php?f=15&t=85 |
I used a class as a decorator to do what
uasyncio is not ready for the esp8266, is it? |
No, not yet. |
Comparing to what? Your library which you don't know how to write? uasyncio is a generic library which works on MicroPython, period. Some ports may be not ready to run it yet. If you're interested in esp8266, try it, and report results (on the forum). That's much more useful than trying to duplicate effort. |
There's no need to be hostile. I don't know where you get that I don't know how to write my library, because it's working. I was just asking because I remember seeing it as a goal on the Kickstarter campaign. |
@autrilla : Sorry, but getting invalid bug tickets (yours is such) slows down our work on the goals of the Kickstarter campaign. And it's personally frustrating to see people duplicating effort, then coming with "I'm stumped, what to do?" requests instead of helping with a community effort (micropython-lib is a community effort, and people already put lot of effort into it to save other people from being stumped on simple things). |
I tried making my own asyncio-like event loop for the ESP8266 yesterday, and because the
types
module is not available, I simply copied the relevant part fortypes.coroutine
. It turns out it usesfunc.__code__
, which is apparently not implemented in micropython.The text was updated successfully, but these errors were encountered: