| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2015-01-01 | py: Allow keyword arguments for namedtuple | stijn | |
| 2015-01-01 | py: Use sequence of strings for named tuple initialization | stijn | |
| - remove single string initialization style - take list of strings instead - store list in the type for fast lookup | |||
| 2014-12-31 | py: Fix rshift and not of zero/one edge cases in mpz. | Damien George | |
| Addresses issue #1027. | |||
| 2014-12-31 | tests: Disable float/float2int.py on pyboard (needs double prec). | Damien George | |
| 2014-12-31 | objstr: Fix %d-formatting of floats. | Paul Sokolovsky | |
| 2014-12-30 | py: Partially fix float to int conversion. | Paul Sokolovsky | |
| This fixes conversion when float type has more mantissa bits than small int, and float value has small exponent. This is for example the case of 32-bit platform using doubles, and converting value of time.time(). Conversion of floats with larg exponnet is still not handled correctly. | |||
| 2014-12-24 | py: Make bytes objs work with more str methods; add tests. | Damien George | |
| 2014-12-24 | tests: Add run-tests-exp.py, simple MicroPython-based test runner. | Paul Sokolovsky | |
| This script is rewrite of run-tests-exp.sh, and tries to achieve self-hosted testsuite running in environments where neither CPython nor unix shell is available. As run-tests-exp.sh, it requires complete set of .exp files pre-generated with ./run-test --write-exp. | |||
| 2014-12-20 | run-tests: Allow to run testuite against Windows build on Linux (using Wine). | Paul Sokolovsky | |
| Just adjust line-endings of micropython.exe output, the rest should be handled by Wine (automagically on properly configured distro). To run: MICROPY_MICROPYTHON=../windows/micropython.exe ./run-tests | |||
| 2014-12-20 | windows: Correctly interpret skipped tests, enable uhashlib and ubinascii | stijn | |
| 2014-12-18 | lib/libm: Add acosh, asinh, atanh, tan; get working with stmhal. | Damien George | |
| acoshf, asinhf, atanhf were added from musl. mathsincos.c was split up into its original, separate files (from newlibe-nano-2). tan was added. All of the important missing float functions are now implemented, and pyboard now passes tests/float/math_fun.py (finally!). | |||
| 2014-12-18 | tests: Get misc/print_exception and pyb/spi working on pyboard. | Damien George | |
| 2014-12-18 | tests: sha256: skip test if uhashlib module is not available. | Paul Sokolovsky | |
| 2014-12-15 | tests: Add testcase for ffi callbacks. | Paul Sokolovsky | |
| 2014-12-14 | asmarm: Fix bug with encoding small negative ints using MVN instruction. | Paul Sokolovsky | |
| 2014-12-13 | run-tests: Skip native/viper tests based on prefix. | Paul Sokolovsky | |
| Otherwise, new tests are forgotten to be added to explicit lists. Issue found running on Debian/ARM. | |||
| 2014-12-12 | py: Fix optimised for-loop compiler so it follows proper semantics. | Damien George | |
| You can now assign to the range end variable and the for-loop still works correctly. This fully addresses issue #565. Also fixed a bug with the stack not being fully popped when breaking out of an optimised for-loop (and it's actually impossible to write a test for this case!). | |||
| 2014-12-12 | run-tests: Reset MICROPYPATH, to make sure tests use only builtin modules. | Paul Sokolovsky | |
| 2014-12-12 | run-tests: PEP8 fix. | Paul Sokolovsky | |
| 2014-12-12 | tests: Activate recursive_data.py test, now that io.StringIO is available. | Paul Sokolovsky | |
| 2014-12-11 | tests: Add test for semantics of for-loop that optimisation can break. | Damien George | |
| 2014-12-11 | tests: Disable print_exception test when using native emitter. | Damien George | |
| 2014-12-11 | tests: Fix print_exception test and re-enable it on Travis CI. | Damien George | |
| Issue was with uPy: on local machine with micropython-lib installed, io module is available. Not the case on Travis CI, where only _io module is available in uPy. | |||
| 2014-12-11 | run-tests: Skip print_exception.py on TravisCI, as it irreproducibly fails. | Paul Sokolovsky | |
| TODO: Figure out what's wrong on Travis. | |||
| 2014-12-10 | tests: Fix print_exception.py to work on Travis CI. | Damien George | |
| 2014-12-10 | tests: Add test for print_exception() function. | Paul Sokolovsky | |
| 2014-12-09 | py: Allow builtins to be overridden. | Damien George | |
| This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS) which, when enabled, allows to override all names within the builtins module. A builtins override dict is created the first time the user assigns to a name in the builtins model, and then that dict is searched first on subsequent lookups. Note that this implementation doesn't allow deleting of names. This patch also does some refactoring of builtins code, creating the modbuiltins.c file. Addresses issue #959. | |||
| 2014-12-05 | py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack. | Damien George | |
| mp_obj_int_get_truncated is used as a "fast path" int accessor that doesn't check for overflow and returns the int truncated to the machine word size, ie mp_int_t. Use mp_obj_int_get_truncated to fix struct.pack when packing maximum word sized values. Addresses issues #779 and #998. | |||
| 2014-12-04 | py: Allow bytes/bytearray/array to be init'd by buffer protocol objects. | Damien George | |
| Behaviour of array initialisation is subtly different for bytes, bytearray and array.array when argument has buffer protocol. This patch gets us CPython conformant (except we allow initialisation of array.array by buffer with length not a multiple of typecode). | |||
| 2014-11-30 | py: Implement +, += and .extend for bytearray and array objs. | Damien George | |
| Addresses issue #994. | |||
| 2014-11-29 | tests: Split out float test from builtin_round.py. | Damien George | |
| 2014-11-26 | Adding CAN filter management | Henrik Sölver | |
| 2014-11-22 | tests: Add test for hashlib.sha256 . | Paul Sokolovsky | |
| 2014-11-21 | py: Add support for float/double arrays in array module. | Damien George | |
| Addresses issue #981. | |||
| 2014-11-19 | Set PYTHONIOENCODING='utf-8' so that unicode tests can pass on CPython on | blmorris | |
| systems where another encoding is set in the locale | |||
| 2014-11-16 | py: Make stream seek correctly check for ioctl fn; add seek for textio. | Damien George | |
| 2014-11-17 | tests: Add test for file.seek(). | Paul Sokolovsky | |
| 2014-11-15 | stmhal: Fix HAL error raising; make test for it. | Damien George | |
| Addresses issue #968. | |||
| 2014-11-15 | tests: Add test for hash of user defined class. | Damien George | |
| 2014-11-05 | py: Allow +, in, and compare ops between bytes and bytearray/array. | Damien George | |
| Eg b"123" + bytearray(2) now works. This patch actually decreases code size while adding functionality: 32-bit unix down by 128 bytes, stmhal down by 84 bytes. | |||
| 2014-11-03 | py: Fix builtin callable so it checks user-defined instances correctly. | Damien George | |
| Addresses issue #953. | |||
| 2014-11-02 | py: Fix bug with right-shifting small ints by large amounts. | Paul Sokolovsky | |
| Undefined behavior in C, needs explicit check. | |||
| 2014-10-31 | tests: Add heapalloc.py.exp, since CPython can't generate it. | Damien George | |
| 2014-10-31 | py: Make gc.enable/disable just control auto-GC; alloc is still allowed. | Damien George | |
| gc.enable/disable are now the same as CPython: they just control whether automatic garbage collection is enabled or not. If disabled, you can still allocate heap memory, and initiate a manual collection. | |||
| 2014-10-31 | py: Add builtin round function. | Damien George | |
| Addresses issue #934. | |||
| 2014-10-30 | stmhal: Improve CAN print function. | Damien George | |
| 2014-10-30 | tests: Added and adapted CAN tests for extended messages | Henrik Sölver | |
| 2014-10-31 | objstr: Allow to convert any buffer proto object to str. | Paul Sokolovsky | |
| Original motivation is to support converting bytearrays, but easier to just support buffer protocol at all. | |||
| 2014-10-30 | moductypes: Add test for accessing UINT8 array. | Paul Sokolovsky | |
| 2014-10-30 | moductypes: Make sure we can apply .sizeof() to all aggregate types. | Paul Sokolovsky | |
| Before, sizeof() could be applied to a structure field only if that field was itself a structure. Now it can be applied to PTR and ARRAY fields too. It's not possible to apply it to scalar fields though, because as soon as scalar field (int or float) is dereferenced, its value is converted into Python int/float value, and all original type info is lost. Moreover, we allow sizeof of type definitions too, and there int is used to represent (scalar) types. So, we have ambiguity what int may be - either dereferenced scalar structure field, or encoded scalar type. So, rather throw an error if user tries to apply sizeof() to int. | |||
