summaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2019-02-01Never long live the main dictionary.Scott Shawcroft
It's contents change often and may be referenced elsewhere. Fixes #1443
2019-02-01Don't long live class attributesScott Shawcroft
When they are added later, they are also referenced in the main dictionary. Fixes #1218
2019-01-21Merge remote-tracking branch 'adafruit/master' into bleio2Dan Halbert
2019-01-20Merge remote-tracking branch 'adafruit/master' into struct-compatDan Halbert
2019-01-20Fix dict_make_newScott Shawcroft
2019-01-20Check for null kw_argsScott Shawcroft
2019-01-20Improve struct compatibility with CPythonDan Halbert
2019-01-20Improve struct compatibility with CPythonDan Halbert
2019-01-19CharacteristicBuffer: make it be a stream class; add lockingDan Halbert
2019-01-18More make_new updatesScott Shawcroft
2019-01-18More make_new fixes for unix buildScott Shawcroft
2019-01-14fixup micropyScott Shawcroft
2019-01-14Don't build machine class we don't use.Scott Shawcroft
2019-01-14py changes for supporting superclass constructors that take kwargsScott Shawcroft
2018-12-30LocalPeripheral is now Peripheral; more work on basic GATTS support; UART ↵Dan Halbert
not working yet
2018-12-27wip: advertising works, but not connectionDan Halbert
2018-12-13Merge remote-tracking branch 'adafruit/master' into bleio-revDan Halbert
2018-12-06Rework safe mode and have heap overwrite trigger it.Scott Shawcroft
This creates a common safe mode mechanic that ports can share. As a result, the nRF52 now has safe mode support as well. The common safe mode adds a 700ms delay at startup where a reset during that window will cause a reset into safe mode. This window is designated by a yellow status pixel and flashing the single led three times. A couple NeoPixel fixes are included for the nRF52 as well. Fixes #1034. Fixes #990. Fixes #615.
2018-12-06Merge remote-tracking branch 'adafruit/master' into bleio-revDan Halbert
2018-12-04Add stack validity check and raise an error when it happens.Scott Shawcroft
The backtrace cannot be given because it relies on the validity of the qstr data structures on the heap which may have been corrupted. In fact, it still can crash hard when the bytecode itself is overwritten. To fix, we'd need a way to skip gathering the backtrace completely. This also increases the default stack size on M4s so it can accomodate the stack needed by ASF4s nvm API.
2018-12-03UART changes: timeout in secs, write bytes, etc.Dan Halbert
2018-11-30Add support for adding release info into adafruit/circuitpython-orgScott Shawcroft
This also changes the build script to python with better output.
2018-11-20More UUID work; use mp_raise for exceptionsDan Halbert
2018-11-13Support OSError attributesNoralf Trønnes
This adds support for the OSError attributes : errno, strerror, filename and filename2. CPython only sets errno if 2 arguments has been passed in. This has not been implemented here. CPython OSError.args is capped at 2 items for backward compatibility reasons. This has not been implemented here. MICROPY_CPYTHON_COMPAT has to be enabled to get these attributes. mp_common_errno_to_str() has been extended to check mp_errno_to_str() as well. This is done to ease reuse for the strerror argument.
2018-11-09Fix output overflow and make help translatableScott Shawcroft
2018-11-09Build refinement to handle warnings and quiet outputScott Shawcroft
2018-10-24Merge pull request #1167 from notro/cpython_stdlibScott Shawcroft
Support CPython standard library
2018-10-18Use python3 for mpy-toolScott Shawcroft
2018-10-17Add debug info to the generated frozen_mpy.cScott Shawcroft
It adds size info and uses macros for byte code to make it more readable.
2018-10-07modsys: exc_info: Add tracebackNoralf Trønnes
Add traceback chain to sys.exec_info()[2]. No actual frame info is added, but just enough to recreate the printed exception traceback. Used by the unittest module which collects errors and failures and prints them at the end.
2018-10-07py/objboundmeth: Support __func__ property as in CPythonNoralf Trønnes
This gives access to the function underlying the bound method. Used in the converted CPython stdlib logging.Formatter class to handle overrriding a default converter method bound to a class variable. The method becomes bound when accessed from an instance of that class. I didn't investigate why CircuitPython turns it into a bound method.
2018-10-07py/builtinimport: Set __file__ on MPY modulesNoralf Trønnes
This sets the __file__ property on MPY modules like how it's done on pure python modules.
2018-10-07fix compilation errors in emitinlinethumb.cUri Shaked
2018-08-25Revert "py/vm: Improve performance of opcode dispatch when using switch stmt."Noralf Trønnes
This reverts commit 869024dd6e62905b7e1069b547856a769b3b24ba. Ctrl-C stopped producing KeyboardInterrupt with this change on CircuitPython. The Unix and stm32 ports handles Ctrl-C differently with a handler which is probably why they where not affected. Fixes #1092
2018-08-17Merge pull request #1064 from notro/i2cslaveScott Shawcroft
Add busio.I2CSlave
2018-08-16Fix test that broke due to decompressing to too small of a scope.Scott Shawcroft
2018-08-16Fix esp and samdScott Shawcroft
2018-08-16fix mpy-crossScott Shawcroft
2018-08-16Compress all translated strings with Huffman coding.Scott Shawcroft
This saves code space in builds which use link-time optimization. The optimization drops the untranslated strings and replaces them with a compressed_string_t struct. It can then be decompressed to a c string. Builds without LTO work as well but include both untranslated strings and compressed strings. This work could be expanded to include QSTRs and loaded strings if a compress method is added to C. Its tracked in #531.
2018-08-16Add i2cslave.I2CSlave bindingsNoralf Trønnes
2018-08-10Fix translation newlinesScott Shawcroft
Escape table was incorrect
2018-08-09Rework escaping and fix ESP build.Scott Shawcroft
2018-08-09Update filter and handle nested quotesScott Shawcroft
2018-08-09Two fixes and translate more strings.Scott Shawcroft
* Fix finding translations with escaped characters. * Add back \r to translations since its needed by screen.
2018-08-07Support internationalisation.Scott Shawcroft
2018-08-02Rename to SRC_QSTR_PREPROCESSOR for clarity.Scott Shawcroft
2018-08-02Handle emitnative.c which is #included into other .c files.Scott Shawcroft
2018-08-02Speed up QSTR creation by pre-filtering files before pre-processing.Scott Shawcroft
2018-07-28Merge remote-tracking branch 'adafruit/master' into micropython-25ae98f-mergeDan Halbert
2018-07-28merge finishedDan Halbert