Search found 1153 matches

by pfalcon
Mon Feb 04, 2019 8:19 pm
Forum: Programs, Libraries and Tools
Topic: ANN: ufarc - state machine lib for uasyncio
Replies: 4
Views: 300

Re: ANN: ufarc - state machine lib for uasyncio

I don't have much familiarity yet with micropython, but I am very familiar with embedded software and fitting Python into small spaces. So, that's why I tried to underline some of the points of MicroPython API above, with reasoning behind them. Nothing of that should come as a surprise to an embedd...
by pfalcon
Sun Feb 03, 2019 7:56 am
Forum: Programs, Libraries and Tools
Topic: ANN: ufarc - state machine lib for uasyncio
Replies: 4
Views: 300

Re: ANN: ufarc - state machine lib for uasyncio

And in all fairness, I don't understand why you use asyncio/uasyncio there at all, given that you perform your own scheduling. It would seam they provide convenient abstraction for time accounting, but it's actually rather different in asyncio vs uasyncio. # Desktop debug: if not hasattr(_event_loop...
by pfalcon
Sun Feb 03, 2019 7:13 am
Forum: Programs, Libraries and Tools
Topic: namedtuple difference with CPython
Replies: 5
Views: 265

Re: namedtuple difference with CPython

Oh, and welcome to MicroPython! Wouldn't ever think that a question like that would come from the PyMite author ;-). To add or not to add? Of course not! We've got exceptions, that's where it stops (almost) ;-).
by pfalcon
Sun Feb 03, 2019 7:07 am
Forum: Programs, Libraries and Tools
Topic: ANN: ufarc - state machine lib for uasyncio
Replies: 4
Views: 300

Re: ANN: ufarc - state machine lib for uasyncio

Known Issue: Some examples fail due to File "/Users/dwhall/.micropython/lib/ufarc/__init__.py", line 513, in run_forever File "/Users/dwhall/.micropython/lib/ufarc/__init__.py", line 532, in stop File "uasyncio/core.py", line 183, in stop File "uasyncio/core.py", line 48, in call_soon IndexError: f...
by pfalcon
Sun Feb 03, 2019 6:52 am
Forum: ESP8266 boards
Topic: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given
Replies: 17
Views: 1043

Re: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given

Thanks @pfalcon! I did the update and it works ok now. I can see you have pushed quite a lot of commits today, thanks! My fork is rebased on top of mainline regularly (i.e. contains all that mainline contains), and that's how rebases look - a lot of metadata seems to be updated, but the content is ...
by pfalcon
Sun Feb 03, 2019 6:51 am
Forum: Programs, Libraries and Tools
Topic: picoweb - Web micro (well, pico) framework (with webserver, etc.)
Replies: 23
Views: 14376

Re: picoweb - Web micro (well, pico) framework (with webserver, etc.)

Recently, more full-fledged version of "logging" module was contributed to micropython-lib. The original small version was captured as "ulogging". As picoweb is intended to run on the smallest systems, it by default use ulogging now. Please update your dependencies. Turned out, this release of pico...
by pfalcon
Sat Feb 02, 2019 10:26 pm
Forum: ESP8266 boards
Topic: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given
Replies: 17
Views: 1043

Re: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given

File "uasyncio/__init__.py", line 60, in remove_writer TypeError: function takes 2 positional arguments but 3 were given MicroPython v1.10-188-gf1644bca9 on 2019-02-02; ESP module with ESP8266 Yes, that looks like a bug. Thanks for the report and detailed info, please run "git pull --rebase" and tr...
by pfalcon
Sat Feb 02, 2019 9:36 pm
Forum: Programs, Libraries and Tools
Topic: Pycopy, "Advanced MicroPython fork" by pfalcon
Replies: 15
Views: 1665

Re: Pycopy, "Advanced MicroPython fork" by pfalcon

Well, description and README at https://github.com/pfalcon/micropython provide the info how this fork is maintained - it's rebased on the mainline regularly. That means it has everything which 1.10 has, has further changes in the master branch after the release, and on top of that, has ~150 more cha...
by pfalcon
Sat Feb 02, 2019 8:34 am
Forum: Programs, Libraries and Tools
Topic: Pycopy, "Advanced MicroPython fork" by pfalcon
Replies: 15
Views: 1665

Re: Pycopy, "Advanced MicroPython fork" by pfalcon

Pycopy now has a fix for long-standing issue with the uasyncio framework, more details in viewtopic.php?f=15&t=85&p=33767#p33767
by pfalcon
Sat Feb 02, 2019 8:33 am
Forum: Programs, Libraries and Tools
Topic: uasyncio - asyncio-like cooperative multitasking framework for uPy
Replies: 114
Views: 43286

Re: uasyncio - asyncio-like cooperative multitasking framework for uPy

A major evolutionary step for uasyncio - a long-standing bug with cancellation of uasyncio.sleep() call was fixed. That bug didn't allow to write reliable networking applications (with timeouts, etc.), and rendered uasyncio practically useless for applications outside its initial domain (which was a...