Paul Sokolovsky
068988085e
upip: Report package not found and similar errors with less noise.
...
While still allow to get full backtrace with --debug.
2017-02-08 00:39:47 +03:00
Paul Sokolovsky
f6668aae28
uasyncio: Release 1.1.
2017-01-28 01:58:05 +03:00
Paul Sokolovsky
1bf1c74ae5
uasyncio: Use builtin uerrno module.
2017-01-28 01:55:40 +03:00
Paul Sokolovsky
7043ee0702
uasyncio: Implement StreamReader.readexactly().
...
With a unit test.
2017-01-28 01:04:21 +03:00
Paul Sokolovsky
ec7b4b948b
uasyncio: StreamReader.readline: Handle partial reads.
...
Now it will return a complete line regardless if it may take several
partial reads to do that. Test included.
2017-01-27 01:09:19 +03:00
Paul Sokolovsky
a8d85e28d0
uasyncio: Fix partial reads in StreamReader.read/readline() methods.
...
If None (no data, would block) is received, need to wait for more data,
not just read it again immediately.
2017-01-26 22:20:29 +03:00
Paul Sokolovsky
f5fdebed34
collections.defaultdict: Release 0.3.
2017-01-26 01:35:10 +03:00
Paul Sokolovsky
69b65efd7e
collections.defaultdict: Implement __contains__.
...
Otherwise, "in" operation uses list protocol (enumeration using
__getitem__, which adds a key/value pair to teh underlying dict)
and ends with memory overflow.
2017-01-26 01:26:40 +03:00
Paul Sokolovsky
56dd0f94e9
uasyncio: Rename examples as such.
2017-01-04 18:01:05 +03:00
Paul Sokolovsky
3e37bdda56
uasyncio: Move test_call_soon.py to uasyncio.core, as it needs only it.
...
Also, rename as example.
2017-01-04 18:01:05 +03:00
Daniel Mizyrycki
4bc5ab902b
uasyncio: Add echo test
2017-01-01 19:06:54 -08:00
Daniel Mizyrycki
0f5d5cead7
uasyncio: Add minimum esp8266 support
2017-01-01 18:17:17 -08:00
Paul Sokolovsky
6256ad69c0
uasyncio: Release 1.0.1.
2016-12-30 22:32:26 +03:00
Paul Sokolovsky
f7c5fe1aea
uasyncio.core: Release 1.1.
2016-12-30 22:29:19 +03:00
Paul Sokolovsky
5403e0f710
uasyncio: Use DEBUG variable as imported from uasyncio.core.
...
Avoids heap allocation to render disabled debug logging strings.
2016-12-29 11:37:41 +03:00
Paul Sokolovsky
f29be360c0
uasyncio: wait: Add workaround against heap alloc on empty iteration.
...
"for a in ():" unconditionally allocates heap so far, per
https://github.com/micropython/micropython/issues/2716 . So, test for
empty result before iterating over it.
2016-12-28 10:25:31 +03:00
Paul Sokolovsky
9d5919dd1c
uasyncio.core: Implement sleep_ms as an awaitable object instead of coro.
...
This allows to await it without heap allocation.
2016-12-26 19:51:11 +03:00
Paul Sokolovsky
793bc05be5
uasyncio.core: Report unknown syscalls.
2016-12-26 19:11:38 +03:00
Paul Sokolovsky
24125191ce
uasyncio.core: Convert Sleep syscall arg (seconds) to milliseconds.
2016-12-23 00:35:42 +03:00
Paul Sokolovsky
222758f0c2
uasyncio.core: Switch to dedicated utimeq class.
...
Allows zero-allocation scheduling of tasks. As long as tasks don't use
await/yield from with coroutines, and don't allocate memory themselves,
there will be no allocation and GC.
2016-12-22 13:04:09 +03:00
Paul Sokolovsky
845f8ebde0
os: Release 0.5.
2016-12-21 00:12:25 +03:00
Paul Sokolovsky
d47419bb73
os: Implement popen().
2016-12-21 00:11:23 +03:00
Paul Sokolovsky
92d32a6cd8
re-pcre: Release 0.2.4.
2016-12-19 23:07:34 +03:00
Paul Sokolovsky
7ccd2d87ed
re-pcre: Actually fix compatibility with big-endian systems.
...
"big" argument to b"".from_bytes(..., "big") isn't really supported by
MicroPython, so use array as a buffer.
2016-12-19 23:05:38 +03:00
Paul Sokolovsky
6e0f020fcd
umqtt.simple: Release 1.3.2.
2016-12-19 22:59:52 +03:00
Paul Sokolovsky
de9fcc53d5
umqtt.simple: Update for to_bytes() parameters refactor.
2016-12-19 22:57:43 +03:00
Paul Sokolovsky
050c6cdb75
README: More info about naming and links to PyPI search results.
...
Also, typo fixes.
2016-12-11 15:35:10 +03:00
Paul Sokolovsky
88c9eae5e1
README: Update to the current state of affairs (pip-micropython -> upip, etc.)
2016-12-10 18:12:35 +03:00
Paul Sokolovsky
fceed2b1bb
README: Remove "highly experimental" status.
2016-12-10 18:00:39 +03:00
Paul Sokolovsky
a968dd7856
urequests: Release 0.4.2.
2016-12-10 17:57:55 +03:00
Paul Sokolovsky
f0b8d9b7ca
urequests: Fix stale variable name (line -> l).
2016-12-10 17:56:44 +03:00
Paul Sokolovsky
0552589f9f
uasyncio.queues: Release 0.1.2.
2016-12-08 14:45:55 +03:00
Paul Sokolovsky
614f5e61e9
uasyncio.queues: Fix queue full condition check in put().
2016-12-08 14:44:59 +03:00
Paul Sokolovsky
1abe4fc8ed
re-pcre: Release 0.2.3.
2016-12-08 14:36:35 +03:00
Paul Sokolovsky
444004be32
re-pcre: Fix compatibility with big-endian systems.
2016-12-08 14:35:48 +03:00
Paul Sokolovsky
abddcd7893
urllib.urequest: Release 0.4.3.
2016-12-08 14:31:59 +03:00
Paul Sokolovsky
cf591cf2c6
urllib.urequest: Fix stale variable name (line -> l).
2016-12-08 14:31:25 +03:00
Tobias Ammann
94be568a03
functools: Make partial wrapper pass on return value.
2016-11-15 19:24:05 +01:00
Paul Sokolovsky
23ff6305c3
uasyncio: Release 1.0.
2016-11-13 15:18:30 +03:00
Paul Sokolovsky
2e5c021515
uasyncio.core: Release 1.0.
2016-11-13 15:17:18 +03:00
Paul Sokolovsky
f24493b1eb
uasyncio.core: create_task: Fix scheduling.
...
Should start with zero delay, not at zero absolute time.
2016-11-13 15:01:51 +03:00
Paul Sokolovsky
b3c2d0f51e
uasyncio.core: Add additional debug output control.
...
__debug__ isn't flexible enough, if you don't disable it, there's huge
memory allocation.
2016-11-13 14:59:49 +03:00
Paul Sokolovsky
02a6625a00
uasyncio.core: Introduce "trailing _" functions which avoid arg un/packing.
...
They just take tuple of arguments instead of *args. In most cases, that
will be () singleton.
2016-11-13 14:59:49 +03:00
Paul Sokolovsky
67d8e55dea
uasyncio: Update for switching to utime.ticks_ms() timesource.
2016-11-13 04:39:52 +03:00
Paul Sokolovsky
f5ae66973d
uasyncio.core: Remove heapq aggregate structure workaround.
2016-11-13 01:44:35 +03:00
Paul Sokolovsky
d9e72f1d40
uasyncio.core: Switch to ticks_ms() as timing source.
...
This makes uasyncio.core compatible with baremetal/embedded ports.
Includes switching to "uheapq timeq" for task queue.
2016-11-13 01:32:32 +03:00
Paul Sokolovsky
f81e979c56
machine: Release 0.2.1.
2016-11-11 00:18:05 +03:00
Paul Sokolovsky
44b29172ec
machine: Be sure to import things from builtin umachine.
2016-11-11 00:16:58 +03:00
Paul Sokolovsky
9992d14ef8
machine: machine.Pin: Add pin reading support.
...
Also, optimize to use binary file mode.
2016-11-11 00:09:43 +03:00
Paul Sokolovsky
294d69693b
machine: Release 0.2.
2016-11-09 22:38:58 +00:00