Paul Sokolovsky
8993fb6cf0
py: Add protection against printing too nested or recursive data structures.
...
With a test which cannot be automatically validated so far.
2014-06-28 02:25:04 +03:00
Paul Sokolovsky
7e4ec3bf4f
bare-arm: Hint of setting MICROPY_ERROR_REPORTING to REPORTING_TERSE.
...
Commented out so far, as enabled leads to dozen more bytes used actually
(due to string pooling effects).
2014-06-27 21:02:04 +03:00
Paul Sokolovsky
81df1e6c98
bare-arm: Disable array module and even bytearray type.
...
To squeeze few more hundreds of bytes.
2014-06-27 21:02:04 +03:00
Paul Sokolovsky
cb78f862cb
py: Allow to disable array module and bytearray type.
...
array.array and bytearray share big deal of code, so to get real savings,
both need to be disabled.
2014-06-27 21:02:04 +03:00
Paul Sokolovsky
0a1ea40273
bare-arm: Enable link map file.
...
This port supposed to be demo of uPy minimality, so let people behold it in
details.
2014-06-27 21:02:04 +03:00
Paul Sokolovsky
8a96ebea75
py: Move stack_ctrl_init() to mp_init().
...
As stack checking is enabled by default, ports which don't call
stack_ctrl_init() are broken now (report RuntimeError on startup). Save
them trouble and just init stack control framework in interpreter init.
2014-06-27 21:02:04 +03:00
Paul Sokolovsky
64c58403ef
Merge pull request #720 from iabdalkader/mcu_name
...
Change MCU name config micro
2014-06-27 18:24:32 +03:00
mux
a75e382a9b
Change MCU name config micro
2014-06-27 00:35:53 +02:00
Paul Sokolovsky
3c8ce38d20
Merge pull request #717 from stinos/dead-code
...
unix: Remove unused CTRL-D definition
2014-06-27 01:23:18 +03:00
Paul Sokolovsky
3659af97c5
Merge pull request #703 from iabdalkader/micro_names
...
Add MICROPY_HW_MICRO_NAME to boards config
2014-06-27 01:19:17 +03:00
Paul Sokolovsky
16ac4962ae
tests: Add test for catching infinite function recursion.
...
Put into misc/ to not complicate life for builds with check disabled.
2014-06-27 00:03:56 +03:00
Paul Sokolovsky
7a8ab5a730
stmhal: Use stackctrl framework.
2014-06-27 00:03:55 +03:00
Paul Sokolovsky
23668698cb
py: Add portable framework to query/check C stack usage.
...
Such mechanism is important to get stable Python functioning, because Python
function calling is handled with C stack. The idea is to sprinkle
STACK_CHECK() calls in places where there can be C recursion.
TODO: Add more STACK_CHECK()'s.
2014-06-27 00:03:55 +03:00
Paul Sokolovsky
91b576d147
Merge pull request #719 from dhylands/pin_fix
...
Use mp_const_none to initialize mapper and map_dict (fix #701 )
2014-06-26 22:49:44 +03:00
Dave Hylands
f170735b73
Use mp_const_none to initialize mapper and map_dict
2014-06-25 16:01:19 -07:00
Paul Sokolovsky
f3de62e6c2
binary: machine_uint_t vs uint dichotomy starts doing real damage.
2014-06-26 00:41:08 +03:00
Paul Sokolovsky
8e01291c18
travis: Use unified diffs for failed tests.
2014-06-26 00:05:53 +03:00
Paul Sokolovsky
7a2f166949
modstruct: Fix alignment handling issues.
...
Also, factor out mp_binary_get_int() function.
2014-06-25 23:34:44 +03:00
stijn
39b6e27944
unix: Remove unused CTRL-D definition
2014-06-25 13:33:10 +02:00
Paul Sokolovsky
5aa740c3e2
modgc: Add mem_free()/mem_alloc() methods.
...
Return free/allocated memory on GC heap.
2014-06-25 14:28:11 +03:00
Damien George
e973acde81
Merge branch 'master' of github.com:micropython/micropython
2014-06-25 04:10:34 +01:00
Paul Sokolovsky
939c2e7f44
Merge pull request #690 from stinos/msvc-gc
...
msvc: Enable GC
2014-06-24 21:34:51 +03:00
Paul Sokolovsky
3c9b24bebe
modsocket: Fix uClibc detection.
2014-06-24 21:20:38 +03:00
Paul Sokolovsky
141df2d350
unix: Dump default heap size in usage message.
2014-06-24 16:58:00 +03:00
Damien George
780e54cdc3
py: Implement delete_attr in native emitter.
2014-06-22 18:35:04 +01:00