Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-04-02 | Merge branch 'master' of github.com:micropython/micropython | Damien George | |
2014-04-02 | stmhal: Fix servo object; add fpclassify to math functions. | Damien George | |
2014-04-02 | tests/string-format: Add test for formatting ints with float format. | Paul Sokolovsky | |
Fail currently. | |||
2014-04-02 | gc: Uses uint defined in misc.h. | Paul Sokolovsky | |
2014-04-02 | unix: Use argv[0] for command name in usage. | Paul Sokolovsky | |
2014-04-02 | unix: Support #if-able impl-specific cmdline options. | Paul Sokolovsky | |
For example, we still build w/o GC enabled, so cannot really set heap size. | |||
2014-04-02 | unix: Properly recognize and report when script on cmdline not found. | Paul Sokolovsky | |
Previosuly just silently exited. | |||
2014-04-02 | py: Wrap compile_scope_inline_asm in #if; remove comment from misc.h. | Damien George | |
2014-04-02 | py: Fix up so that it can compile without float. | Damien George | |
2014-04-02 | py: Enable a jump optimisation in the compiler. | Damien George | |
2014-04-02 | py: Move to Python 3.4.0 compatibility. | Damien George | |
Very little has changed. In Python 3.4 they removed the opcode STORE_LOCALS, but in Micro Python we only ever used this for CPython compatibility, so it was a trivial thing to remove. It also allowed to clean up some dead code (eg the 0xdeadbeef in class construction), and now class builders use 1 less stack word. Python 3.4.0 introduced the LOAD_CLASSDEREF opcode, which I have not yet understood. Still, all tests (apart from bytecode test) still pass. Bytecode tests needs some more attention, but they are not that important anymore. | |||
2014-04-02 | Change test scripts to use python3; bytecode tests use python3.4. | Damien George | |
I upgraded to Python 3.4.0, so needed to make these changes. Hopefully the tests still run with Python 3.3.x (the scripts use python3 so are agnostic as to the subversion). Bytecode tests are tightly coupled to the Python version, and now some fail against Python 3.4. | |||
2014-04-02 | Merge branch 'pip-micropy' of github.com:pfalcon/micropython into ↵ | Damien George | |
pfalcon-pip-micropy | |||
2014-04-02 | stmhal: Add timer module; move servo PWM from TIM2 to TIM5. | Damien George | |
As per issue #257, servo is better on TIM5 because TIM2 is connected to more GPIO. | |||
2014-04-02 | stmhal: Add backspace key to readline (along with delete key). | Damien George | |
2014-04-02 | Add more tests. | Damien George | |
2014-04-02 | py: Factor out static/class method unwrapping code; add tests. | Damien George | |
2014-04-02 | Add a test. | Damien George | |
2014-04-02 | py: Implement floating point power binop. | Damien George | |
2014-04-02 | py: Allow multiple of str/list/tuple on left by an integer. | Damien George | |
2014-04-02 | tools: Add pip-micropython to install packages in MicroPython-friendly way. | Paul Sokolovsky | |
2014-04-02 | py: Add support for sep and end keywords in print. | Damien George | |
2014-04-01 | py: Fix math.{ceil,floor,trunc} to return int. | Damien George | |
2014-04-01 | py: Make pfenv.c conform to code conventions. | Damien George | |
2014-04-01 | Merge pull request #412 from dhylands/pfenv-strn-stack | Damien George | |
Pfenv strn stack | |||
2014-04-01 | Merge pull request #410 from dhylands/fix-led | Damien George | |
Fix pyb.Led(n) code to work properly. | |||
2014-04-01 | Merge pull request #411 from dhylands/pfenv-64-bit | Damien George | |
Fix INT_BUF_SIZE to work with 32-bit and 64-bit | |||
2014-04-02 | Merge pull request #408 from dhylands/str-quick-tests | Paul Sokolovsky | |
Turn off full tests in string-format.py | |||
2014-04-01 | Reduce stack usage of pfenv_print_strn | Dave Hylands | |
2014-04-01 | Fix INT_BUF_SIZE to work with 32-bit and 64-bit | Dave Hylands | |
2014-04-01 | Fix pyb.Led(n) code to work properly. | Dave Hylands | |
2014-04-01 | Turn off full tests in string-format.py | Dave Hylands | |
Add some basic coverage tests | |||
2014-04-01 | tests: Add test for implicit float to int conversion (not allowed!) | Paul Sokolovsky | |
2014-04-01 | py: Remove implicit conversion from int to float. | Damien George | |
2014-04-01 | Merge pull request #407 from dhylands/str-format | Damien George | |
Enhance str.format support | |||
2014-04-01 | Enhance str.format support | Dave Hylands | |
This adds support for almost everything (the comma isn't currently supported). The "unspecified" type with floats also doesn't behave exactly like python. Tested under unix with float and double Spot tested on stmhal | |||
2014-03-31 | py: Implement __getattr__. | Damien George | |
It's not completely satisfactory, because a failed call to __getattr__ should not raise an exception. __setattr__ could be implemented, but it would slow down all stores to a user created object. Need to implement some caching system. | |||
2014-03-31 | objstr: Very basic implementation of % string formatting operator. | Paul Sokolovsky | |
2014-03-31 | py: Wrap .__class__ handling in MICROPY_CPYTHON_COMPAT. | Paul Sokolovsky | |
Because it's superfluos in the presence of type(), a remenant from Python's "old classes". | |||
2014-03-31 | objtype: Wrap .__name__ handling in MICROPY_CPYTHON_COMPAT. | Paul Sokolovsky | |
Because it's runtime reflection feature, not required for many apps. Rant time: Python could really use better str() vs repr() distinction, for example, repr(type) could be "<class 'foo'>" (as it is now), and str(type) just "foo". But alas, getting straight name requires adhoc attribute. | |||
2014-03-31 | Fix part->port in README. | Damien George | |
2014-03-31 | Merge pull request #404 from jonmills/patch-1 | Damien George | |
Update README.md | |||
2014-03-31 | Merge branch 'master' of github.com:micropython/micropython | Damien George | |
2014-03-31 | py: Fix bug in optimised for .. range. | Damien George | |
Don't store final, failing value to the loop variable. This fix also makes for .. range a bit more efficient, as it uses less store/load pairs for the loop variable. | |||
2014-03-31 | tests: Add testcase for multiple inheritance. | Paul Sokolovsky | |
2014-03-31 | py: Fix vstr_init for case that alloc = 0. | Damien George | |
2014-03-31 | Merge branch 'master' of github.com:micropython/micropython | Damien George | |
2014-03-31 | py: Remove old "run time" functions that were 1 liners. | Damien George | |
2014-03-31 | py: Disable dump_args function call entirely when not debugging. | Damien George | |
Yes, I know, a good compiler will optimise this away, but I feel this is neater. | |||
2014-03-31 | objtype: Add virtual __name__ attribute. | Paul Sokolovsky | |
It's virtual because it's not shown in dir(...). (That's also how CPython has it). |