summaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2020-08-12Don't define SHARPDISPLAY when !DISPLAYIOJeff Epler
.. even if FULL_BUILD
2020-08-12sharpmemory: Implement support for Sharp Memory Displays in framebufferioJeff Epler
2020-08-04"pop from empty %q"Jeff Epler
Saves 12 bytes code on trinket m0
2020-08-04py: mp_obj_get_type_qstr as macro saves 24 bytesJeff Epler
2020-08-04Combine some "can't convert" messagesJeff Epler
2020-08-04Combine 'index out of range' messagesJeff Epler
2020-08-04various: Use mp_obj_get_type_qstr more widelyJeff Epler
This removes runtime allocations of the cstring version of the qstring. It is not a size improvement
2020-08-04Use qstrs to save an additional 4 bytesJeff Epler
2020-08-04fix exception type for pop from empty setJeff Epler
2020-08-04py: introduce, use mp_raise_msg_vlistJeff Epler
This saves a very small amount of flash, 8 bytes on trinket_m0
2020-08-04Combine similar strings to reduce size of translationsJeff Epler
This is a slight trade-off with code size, in places where a "_varg" mp_raise variant is now used. The net savings on trinket_m0 is just 32 bytes. It also means that the translation will include the original English text, and cannot be translated. These are usually names of Python types such as int, set, or dict or special values such as "inf" or "Nan".
2020-07-30Merge remote-tracking branch 'origin/main' into blm_badgeJeff Epler
2020-07-29Merge pull request #3222 from WarriorOfWire/pick_micropythonScott Shawcroft
py/compile: Don't await __aiter__ special method in async-for.
2020-07-28Upgrade ulabJeff Epler
This version * moves source files to reflect module structure * adds inline documentation suitable for extract_pyi * incompatibly moves spectrogram to fft * incompatibly removes "extras" There are some remaining markup errors in the specific revision of extmod/ulab but they do not prevent the doc building process from completing.
2020-07-28Merge remote-tracking branch 'adafruit/main' into blm_badgeDan Halbert
2020-07-28add blm_badge; add CIRCUITPY_AUDIOBUSIOIO_I2SOUTDan Halbert
2020-07-27 adjust stack for SAMD21 to accomodate larger pystack -- update frozen ↵Jerry Needell
module adafruit_busdevice
2020-07-24py/compile: Don't await __aiter__ special method in async-for.Jonathan Hogg
MicroPython's original implementation of __aiter__ was correct for an earlier (provisional) version of PEP492 (CPython 3.5), where __aiter__ was an async-def function. But that changed in the final version of PEP492 (in CPython 3.5.2) where the function was changed to a normal one. See https://www.python.org/dev/peps/pep-0492/#why-aiter-does-not-return-an-awaitable See also the note at the end of this subsection in the docs: https://docs.python.org/3.5/reference/datamodel.html#asynchronous-iterators And for completeness the BPO: https://bugs.python.org/issue27243 To be consistent with the Python spec as it stands today (and now that PEP492 is final) this commit changes MicroPython's behaviour to match CPython: __aiter__ should return an async-iterable object, but is not itself awaitable. The relevant tests are updated to match. See #6267.
2020-07-24require async for and async with to actually be in an async def method ↵Kenny
instead of just a generator
2020-07-23remove new char*s because m0 is way oversubscribedKenny
2020-07-23add coroutine behavior for generatorsKenny
coroutines don't have __next__; they also call themselves coroutines. This does not change the fact that `async def` methods are generators, but it does make them behave more like CPython.
2020-07-22py/py.mk: Use additional CFLAGS to compile string0.c.Damien George
Otherwise functions like memset might get optimised to call themselves (eg with gcc 10). And provide CFLAGS_BUILTIN so these options can be changed by a port if needed. Fixes issue #6053.
2020-07-22Add externs. GCC10 complains about duplicate definesScott Shawcroft
2020-07-22Merge branch 'main' into memmonitorScott Shawcroft
2020-07-21Turn off find when CPYTHON_COMPAT is offScott Shawcroft
2020-07-21Merge remote-tracking branch 'adafruit/main' into bytearray_findScott Shawcroft
2020-07-21Merge pull request #3160 from tannewt/enable_pystackScott Shawcroft
Enable PYSTACK to keep function state out of the heap
2020-07-21Only add .find without CPYTHON_COMPATScott Shawcroft
2020-07-17Add cast for mpy-cross warningScott Shawcroft
2020-07-17Get AllocationAlarm workingScott Shawcroft
2020-07-17Add memorymonitor moduleScott Shawcroft
2020-07-17Add find varients to bytearrayScott Shawcroft
2020-07-17Enable PYSTACK to keep function state out of the heapScott Shawcroft
2020-07-13Fix to pass mpy-cross buildDavePutz
2020-07-13more formatting fixDavePutz
2020-07-13Fix formattingDavePutz
2020-07-13Issue #2949 Run background checks during long multiplicationsDavePutz
2020-07-13Merge pull request #3003 from Flameeyes/masterScott Shawcroft
License tagging according to REUSE specifications.
2020-07-08audioio: Remove compatibility codeJeff Epler
These items were aliased from audiocore to audioio for compatibility with 4.x, but according to our deprecation schedule can be removed in 6.0.
2020-07-06Add license to some obvious files.Diego Elio Pettenò
2020-06-26sdioio: Add shared-bindingsJeff Epler
There is no implementation yet.
2020-06-26sdcardio: implement new library for SD card I/OJeff Epler
Testing performed: That a card is successfully mounted on Pygamer with the built in SD card slot This module is enabled for most FULL_BUILD boards, but is disabled for samd21 ("M0"), litex, and pca10100 for various reasons.
2020-06-25I2CPeripheral: Rename class and its moduleJeff Epler
This is an incompatible change.
2020-06-24gnss: Implement new library for GNSSKamil Tomaszewski
2020-06-22circuitpy_defns.mk: Sort several lists of source filesJeff Epler
and regularize whitespace in one spot
2020-06-22_pew: move to common-halJeff Epler
I noticed that this code was referring to samd-specific functionality, and isn't enabled except in one samd board (pewpew10). Move it. There is incomplte support for _pew in mimxrt10xx which then caused build errors; adding a #if guard to check for _pew being enabled fixes it. The _pew module is not likely to be important on mimxrt but I'll leave the choice to remove it to someone else.
2020-06-03Fix up end of file and trailing whitespace.Diego Elio Pettenò
This can be enforced by pre-commit, but correct it separately to make it easier to review.
2020-06-01Merge remote-tracking branch 'adafruit/master' into wdt-nrfScott Shawcroft
2020-06-01py.mk: Assume we want all C source files in ulabJeff Epler
2020-06-01py.mk: Assume we want all C files from ulabJeff Epler