aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-04-05tests: Add test to check issue #429.Damien George
2014-04-05Merge pull request #436 from dhylands/pfenv-print-intDamien George
Change pfenv_print_int to take machine_uint_t rather than unsinged in
2014-04-05Merge pull request #435 from dhylands/str-modulo-floatDamien George
Allow floating point arguments with %d,i,u,o,x,X formats
2014-04-05Merge pull request #433 from pfalcon/getattr-3argDamien George
py: Support 3-arg getattr() builtin (with default value).
2014-04-05Change pfenv_print_int to take machine_uint_t rather than unsinged inDave Hylands
With this change, the following works: >>> print('%#x' % 0x1234567890abcdef) 0x1234567890abcdef
2014-04-05Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-04-05py: Fix delete operation on map/dict and set objects.Damien George
Hash table can now be completely full (ie now NULL entry) before a resize is triggered. Use sentinel value to indicate delete entry in the table.
2014-04-05stmhal: autoflash now enters serial comms after flashing.Damien George
2014-04-05Allow floating point arguments with %d,i,u,o,x,X formatsDave Hylands
2014-04-05mp_obj_get_int(): Add warning against adding implicit float->int conversion.Paul Sokolovsky
2014-04-05py: Fix bug in DELETE_SUBSCR bytecode, decreasing sp too much.Damien George
2014-04-05tests: Add test for dict delete. It fails.Damien George
2014-04-05py: Implement DELETE_SUBSCR bytecode; implement mp_obj_dict_delete.Damien George
2014-04-05Merge pull request #431 from pfalcon/unbreak-map-removeDamien George
map: When removing a key, don't NULL the entry, but mark as deleted.
2014-04-05objfun: Add equality support.Paul Sokolovsky
2014-04-05stmhal: Add more escape seqs; add debugging output for escape seq.Damien George
2014-04-05py: Support 3-arg getattr() builtin (with default value).Paul Sokolovsky
2014-04-05Merge branch 'xterm-home-end' of github.com:pfalcon/micropython into ↵Damien George
pfalcon-xterm-home-end
2014-04-05objtype: Add equality test for type types.Paul Sokolovsky
2014-04-05py: Allow types to be hashable.Paul Sokolovsky
Quite natural to have d[int] = handle_int .
2014-04-05py: Put default namespace into module __main__.Paul Sokolovsky
That's how CPython has it, in particular, "import __main__" should work.
2014-04-05map: When removing a key, don't NULL the entry, but mark as deleted.Paul Sokolovsky
When searching next time, such entry should be just skipped, not terminate the search. It's known that marking techique is not efficient at the presense of many removes, but namespace usage should not require many deletes, and as for user dictionaries - well, open addressing map table with linear rehashing and load factor of ~1 is not particularly efficient at all ;-). TODO: May consider "shift other entries in cluster" approach as an alternative.
2014-04-05mp_load_name(): Optimize for outer scope where locals == globals.Paul Sokolovsky
2014-04-05map: Add mp_map_dump() (#ifdef'ed) to be handy when debugging maps.Paul Sokolovsky
2014-04-05stmhal readline: Parse XTERM Home/End key codes.Paul Sokolovsky
Which are ESC O H, ESC O F.
2014-04-04unix: Rename module sources per latest naming conventions (mod*.c).Paul Sokolovsky
2014-04-04unix: Use STATIC modifier to enable code size analysis via map file.Paul Sokolovsky
2014-04-04Merge pull request #421 from dhylands/git-versionDamien George
Add the git version and build-date to the banner
2014-04-04unix: Routines related to terminal reading should use system malloc.Paul Sokolovsky
Otherwise we have mixup between system and GC alloc.
2014-04-04run-tests: Elaborate python3 command override capabilities.Paul Sokolovsky
2014-04-04py: Make False and True act like 0 and 1 for integer arithmetic.Damien George
2014-04-04py: Allow dict constructor to take keyword arguments.Damien George
2014-04-04py: Remove mp_obj_less (use mp_binary_op(MP_BINARY_OP_LESS..) instead).Damien George
2014-04-04unix: Allocate more heap memory by default on 64 bit machines.Damien George
Pointers are 2x bigger on 64 bit machines, so we should allocate twice the memory to have a comparable heap size.
2014-04-04Merge pull request #422 from dhylands/str-moduloDamien George
Str modulo
2014-04-04py: Enable optimisation of multiplying 2 small ints in compiler.Damien George
2014-04-04tests: Make rge-sm.py use less memory (integration step increased).Damien George
In addition to memory allocation failure, other problem was that 10**17 was overflowing. Now passes.
2014-04-04py: This time, real proper overflow checking of small int power.Damien George
Previous overflow test was inadequate.
2014-04-04py: Add m_malloc_fail function to handle memory allocation error.Damien George
A malloc/realloc fail now throws MemoryError.
2014-04-04tests/file-with: Add testcase which failed for @dpgeorge.Paul Sokolovsky
Works on x86.
2014-04-03Implements most of str.moduloDave Hylands
The alternate form for floating point doesn't work yet. The %(name)s form doesn't work yet.
2014-04-03Add the git version to the bannerDave Hylands
2014-04-04py: Handle small int power overflow correctly.Damien George
2014-04-03Changes to get unix/ port compiling on Cygwin.Damien George
2014-04-03stmhal: Add home/end cursor support in readline.Damien George
Home/end work in picocom and screen (different codes in those 2 programs). Also, CTRL-A (for non-empty liny) and CTRL-E act as home/end.
2014-04-03Merge pull request #419 from pfalcon/stmhal-file-streamsDamien George
stmhal: Reimplement file support using stream protocol API.
2014-04-03tests: Allow to run tests on pyboard.Damien George
To run the tests on the pyboard you need to set the "test_on_pyboard" variable to "True", and also have tools/pyboard.py available for import (easiest is to symlink to it).
2014-04-03tools: Improve reading back from pyboard.Damien George
2014-04-03stmhal: On soft reset, if in raw REPL mode, don't run main.py.Damien George
2014-04-03tools: pyboard.py can now execute a file remotely!Damien George