| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2014-10-06 | tests: Skip ffi_float.py if module ffi is not available. | Paul Sokolovsky | |
| 2014-10-06 | tests: Add missing "import sys". | Paul Sokolovsky | |
| 2014-10-06 | tests: Force skip of LE test on non-LE arch; improve run-tests-exp.sh. | Damien George | |
| 2014-10-06 | tests: Make run-tests-exp.sh skip tests that fail due to invalid decorator. | Damien George | |
| Should address issue #856. | |||
| 2014-10-05 | tests: Add check for micropython.native and then skip relevant tests. | Damien George | |
| If micropython.native decorator doesn't compile, then we skill all native/viper tests. This patch also re-enables the ujson_loads test on NT. Addresses issue #861, and partially addresses issue #856. | |||
| 2014-10-05 | py: Make compiler return a proper exception on SyntaxError. | Damien George | |
| 2014-10-05 | tests: Make printing of floats hopefully more portable. | Damien George | |
| 2014-10-05 | Exclude some tests which always fail on windows | stijn | |
| 2014-10-02 | tests: Add simple CAN test. | Damien George | |
| 2014-10-01 | Enable device keyword option when running pyboard.py --tests and run-tests ↵ | blmorris | |
| --pyboard | |||
| 2014-09-30 | py: Remove IOError since it's deprecated; use OSError instead. | Damien George | |
| In CPython IOError (and EnvironmentError) is deprecated and aliased to OSError. All modules that used to raise IOError now raise OSError (or a derived exception). In Micro Python we never used IOError (except 1 place, incorrectly) and so don't need to keep it. See http://legacy.python.org/dev/peps/pep-3151/ for background. | |||
| 2014-09-29 | py: Fix viper store on x86; add tests for viper ptr16. | Damien George | |
| 2014-09-29 | py: Add casting to viper; add native mem stores to viper. | Damien George | |
| Viper can now do the following: def store(p:ptr8, c:int): p[0] = c This does a store of c to the memory pointed to by p using a machine instructions inline in the code. | |||
| 2014-09-29 | tests: Add tests for viper binary operations. | Damien George | |
| 2014-09-29 | py: Allow viper to use ints as direct conditionals in jumps. | Damien George | |
| Allows things like: if 1: ... | |||
| 2014-09-25 | py: Simplify JSON str printing (while still conforming to JSON spec). | Damien George | |
| The JSON specs are relatively flexible and allow us to use one function to print strings, be they ascii, bytes or utf-8 encoded. | |||
| 2014-09-25 | Change allows tests/unix/ffi_float.py to pass on OSX | blmorris | |
| 2014-09-25 | tests: Add test for exception matching of a tuple of exceptions. | Damien George | |
| 2014-09-23 | py: Make native emitter handle multi-compare and not/is not/not in ops. | Damien George | |
| 2014-09-23 | tests: Fix uctypes tests to run on 64bit arch; enable more native tests. | Damien George | |
| 2014-09-21 | extmod, ujson: Add test and comment for loads. | Damien George | |
| 2014-09-17 | py: Add native json printing using existing print framework. | Damien George | |
| Also add start of ujson module with dumps implemented. Enabled in unix and stmhal ports. Test passes on both. | |||
| 2014-09-13 | py: Fix build error when float disabled; add test for divmod. | Damien George | |
| 2014-09-13 | py: Implement divmod, % and proper // for floating point. | Damien George | |
| Tested and working on unix and pyboard. | |||
| 2014-09-06 | tests: Enable misc tests on pyboard; output 4 sig figs in rge_sm. | Damien George | |
| 2014-09-06 | unix: Don't use -Wno-error=cpp or #warning; fix strict alias warning. | Damien George | |
| For the sake of older versions of gcc (and other compilers), don't use the #warning CPP directive, nor the -Wno-error=cpp option. Also, fix a strict alias warning in modffi.c for older compilers, and add a test for ffi module. Addresses issue #847. | |||
| 2014-09-06 | py: Make mpz able to use 16 bits per digit; and 32 on 64-bit arch. | Damien George | |
| Previously, mpz was restricted to using at most 15 bits in each digit, where a digit was a uint16_t. With this patch, mpz can use all 16 bits in the uint16_t (improvement to mpn_div was required). This gives small inprovements in speed and RAM usage. It also yields savings in ROM code size because all of the digit masking operations become no-ops. Also, mpz can now use a uint32_t as the digit type, and hence use 32 bits per digit. This will give decent improvements in mpz speed on 64-bit machines. Test for big integer division added. | |||
| 2014-08-29 | py: Fix 2 bugs in native emitter: jump_or_pop and stack settling. | Damien George | |
| Addresses issue #838. | |||
| 2014-08-29 | tests: Add option to run-tests to enable native emitter. | Damien George | |
| 2014-08-26 | Make int(b'123') work properly. | Dave Hylands | |
| 2014-08-26 | py: Add dispatch for user defined ==, >, <=, >=. | Damien George | |
| Addresses issue #827. | |||
| 2014-08-25 | tests: Add test for pyb.disable_irq and pyb.enable_irq. | Damien George | |
| 2014-08-24 | py: Consolidate min/max functions into one, and add key= argument. | Damien George | |
| Addresses issue #811. | |||
| 2014-08-24 | stmhal, modtime: Small changes, reduced code size by around 80 bytes. | Damien George | |
| Also added test for modtime. | |||
| 2014-08-24 | py: Fix bug where GC collected native/viper/asm function data. | Damien George | |
| Because (for Thumb) a function pointer has the LSB set, pointers to dynamic functions in RAM (eg native, viper or asm functions) were not being traced by the GC. This patch is a comprehensive fix for this. Addresses issue #820. | |||
| 2014-08-16 | py: Viper can call functions with native types, and raise exceptions. | Damien George | |
| 2014-08-16 | tests: Wait for just over 1 sec when testing RTC. | Damien George | |
| Waiting for 1000ms between seconds of RTC is sometimes too quick. Waiting for 1001ms is enough for the RTC to pass 1 second. | |||
| 2014-08-15 | py: Viper can now store to global. | Damien George | |
| 2014-08-15 | py: Fix typing of viper locals; allow default types in annotation. | Damien George | |
| 2014-08-15 | py: Allow viper to have type annotations. | Damien George | |
| Viper functions can now be annotated with the type of their arguments and return value. Eg: @micropython.viper def f(x:int) -> int: return x + 1 | |||
| 2014-08-13 | py: Fix mult by negative number of tuple, list, str, bytes. | Damien George | |
| Multiplication of a tuple, list, str or bytes now yields an empty sequence (instead of crashing). Addresses issue #799 Also added ability to mult bytes on LHS by integer. | |||
| 2014-08-12 | extmod: Finish rename of zlib to zlibd; enable zlibd on stmhal. | Damien George | |
| 2014-08-13 | tests: Add test for zlibd module. | Paul Sokolovsky | |
| 2014-08-12 | py: Improve range: add len, subscr, proper print. | Damien George | |
| Can now index ranges with integers and slices, and reverse ranges (although reversing is not very efficient). Not sure how useful this stuff is, but gets us closer to having all of Python's builtins. | |||
| 2014-08-12 | py: Implement builtin reversed() function. | Damien George | |
| reversed function now implemented, and works for tuple, list, str, bytes and user objects with __len__ and __getitem__. Renamed mp_builtin_len to mp_obj_len to make it publically available (eg for reversed). | |||
| 2014-08-11 | objstr: Make sure that bytes are indexed as bytes, not as unicode. | Paul Sokolovsky | |
| Fixes #795. | |||
| 2014-08-10 | objarray: Implement equality testing between arrays and other buffers. | Paul Sokolovsky | |
| 2014-08-08 | tests, pyb: Update pin test. | Damien George | |
| 2014-07-28 | py: Implement __file__ attribute for modules. | Paul Sokolovsky | |
| 2014-07-22 | tests: Add testcase for read by length past EOF. | Paul Sokolovsky | |
| Currently broken for unicode input streams. | |||
