summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-25docs: Bump version to 1.3.9.v1.3.9Damien George
2015-01-24stmhal: Disable MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE.Damien George
It uses RAM and on pyboard we are generally tight on RAM, so disable this optimisation for general builds. If users need the speed then they can build their own version. Maybe in the future we can have different versions of pyboard firmware built with different tradeoffs.
2015-01-25modffi: 's' (string) return type: handle NULL properly (return None).Paul Sokolovsky
2015-01-24py: Don't use anonymous unions, name them instead.Damien George
This makes the code (more) compatible with the C99 standard.
2015-01-24py: Be more machine-portable with size of bit fields.Damien George
2015-01-24tests: Update float2int tests for new range classificationsDavid Steinberg
- Tests vary based on build configuration (32/64-bit and internal int type). - Added tests for exceptions raised on overflow of int type.
2015-01-24py: Use float-to-int classifications for mp_obj_new_int_from_float() functionsDavid Steinberg
2015-01-24py: Add float-to-int classification functionDavid Steinberg
2015-01-24py: Fix issue in mpz_set_from_float() when mp_int_t is larger than floatDavid Steinberg
2015-01-24py: Move mp_float_t related defines to misc.hDavid Steinberg
2015-01-24py: Fix segfault in namedtuple when name is a non-interned stringstijn
- namedtuple was wrongly using MP_OBJ_QSTR_VALUE instead of mp_obj_str_get_qstr, so when passed a non-interned string it would segfault; fix this by using mp_obj_str_get_qstr - store the namedtuple field names as qstrs so it is not needed to use mp_obj_str_get_qstr everytime the field name has to be accessed. This also slighty increases performance when fetching attributes
2015-01-24stmhal: Bug fix for usocket's accept and setsockopt methods.Damien George
accept might raise an exception, in which case the new socket is not fully created. It has a finaliser so will run close() method when GC'd. Before this patch close would try to close an invalid socket. Now fixed. setsockopt took address of stack value which became out of scope. Now fixed.
2015-01-24binary: Rework array accessors. They work with native, not stdint types.Paul Sokolovsky
2015-01-24stream: readall(): Make sure there's a trailing NUL char.Paul Sokolovsky
2015-01-23tests: Fix typo in file_long_read3.py.Paul Sokolovsky
2015-01-23modujson: .loads(): Handle more whitespace characters.Paul Sokolovsky
2015-01-23tests: Add extra test for reading multiple of internal chunk size.Paul Sokolovsky
2015-01-23stream: Fix readall() implementation in respect to NUL terminator bytes.Paul Sokolovsky
After vstr refactor. Fixes #1084.
2015-01-23tests: Add testcase for reading amounts bigger than buffer/chunk size.Paul Sokolovsky
2015-01-23objstr: Remove code duplication and unbreak Windows build.Paul Sokolovsky
There was really weird warning (promoted to error) when building Windows port. Exact cause is still unknown, but it uncovered another issue: 8-bit and unicode str_make_new implementations should be mutually exclusive, and not built at the same time. What we had is that bytes_decode() pulled 8-bit str_make_new() even for unicode build.
2015-01-23objstr*: Use separate names for locals_dict of 8-bit and unicode str's.Paul Sokolovsky
To somewhat unbreak -DSTATIC="" compile.
2015-01-22py: Allow asmx64 to compile with -Wsign-compare.Damien George
See issue #699.
2015-01-22lib/libm: Add frexp and modf functions; use in stmhal; add tests.Damien George
Addresses issue #1081.
2015-01-22stmhal: Make CC3K object static, so it's only registered once as NIC.Damien George
2015-01-22stmhal: Put mod_network_nic_list in global root-pointer state.Damien George
It needs to be scanned by GC. Thanks to Daniel Campora.
2015-01-21py: Add comments for vstr_init and mp_obj_new_str.Damien George
2015-01-21py: Remove mp_obj_str_builder and use vstr instead.Damien George
With this patch str/bytes construction is streamlined. Always use a vstr to build a str/bytes object. If the size is known beforehand then use vstr_init_len to allocate only required memory. Otherwise use vstr_init and the vstr will grow as needed. Then use mp_obj_new_str_from_vstr to create a str/bytes object using the vstr memory. Saves code ROM: 68 bytes on stmhal, 108 bytes on bare-arm, and 336 bytes on unix x64.
2015-01-21py: Add mp_obj_new_str_from_vstr, and use it where relevant.Damien George
This patch allows to reuse vstr memory when creating str/bytes object. This improves memory usage. Also saves code ROM: 128 bytes on stmhal, 92 bytes on bare-arm, and 88 bytes on unix x64.
2015-01-22modffi: Support return values of mp_obj_t type.Paul Sokolovsky
2015-01-21builtinimport: Make sure that qstr is used properly to load frozen modules.Paul Sokolovsky
2015-01-21py: Implement proper re-raising in native codegen's finally handler.Damien George
This allows an exception to propagate correctly through a finally handler.
2015-01-21py: Implement __reversed__ slot.Damien George
Addresses issue #1073.
2015-01-21stmhal: Add support for FEZ Cerb40 II board from ghielectronics.com.Dave Hylands
2015-01-20docs: Fix frequency info for DAC.triangle.Damien George
2015-01-20py: Prevent segfault for operations on closed StringIO.stijn
Addresses issue #1067.
2015-01-21modffi: Support open own executable using open(None).Paul Sokolovsky
2015-01-20py: Use mp_arg_check_num in some _make_new functions.Damien George
Reduces stmhal code size by about 250 bytes.
2015-01-20py, unix: Allow to compile with -Wunused-parameter.Damien George
See issue #699.
2015-01-20py, unix, stmhal: Allow to compile with -Wshadow.Damien George
See issue #699.
2015-01-20py: Implement very simple frozen modules support.Paul Sokolovsky
Only modules (not packages) supported now. Source modules can be converted to frozen module structures using tools/make-frozen.py script.
2015-01-18esp8266: Add missing hard_reset qstr.Paul Sokolovsky
2015-01-18esp8266:modpyb: Implement hard_reset().Paul Sokolovsky
2015-01-16unix: Update .gitignore for "fast" and "minimal" builds.Damien George
2015-01-16unix: Add target to build "minimal" uPy interpreter.Damien George
2015-01-16py, unix: Allow to compile with -Wsign-compare.Damien George
See issue #699.
2015-01-16esp8266: Implement task-based, event-driven interface with UART.Paul Sokolovsky
This enables proper interfacing with underlying OS - MicroPython doesn't run the main loop, OS does, MicroPython just gets called when some event takes place.
2015-01-16py: Remove unnecessary id_flags argument from emitter's load_fast.Damien George
Saves 24 bytes in bare-arm.
2015-01-16minimal: Make #if indent consistent.Paul Sokolovsky
2015-01-16minimal: Support even-driven REPL.Paul Sokolovsky
2015-01-16pyexec: Add event-driven variant pyexec_friendly_repl().Paul Sokolovsky
pyexec_friendly_repl_process_char() and friends, useful for ports which integrate into existing cooperative multitasking system. Unlike readline() refactor before, this was implemented in less formal, trial&error process, minor functionality regressions are still known (like soft&hard reset support). So, original loop-based pyexec_friendly_repl() is left intact, specific implementation selectable by config setting.