aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-02-05py: Add built-in super.Damien George
2014-02-04Merge pull request #259 from dhylands/netduinoDamien George
Initial support for Netduino
2014-02-04mp_obj_new_list(n, items): Copy items only if not-NULL.Paul Sokolovsky
Similar to mp_obj_new_tuple().
2014-02-04Use qstr id to create sys module.Paul Sokolovsky
2014-02-03Initial support for NetduinoDave Hylands
This also fixes up the IRQ for the PYBOARD4 USERSW although I was unable to test that functionality.
2014-02-04Add ImportError.Paul Sokolovsky
2014-02-04Fix unstable case in builtin_id.py test.Paul Sokolovsky
2014-02-04Expose __import__() function.Paul Sokolovsky
2014-02-03py: Implement builtin exec.Damien George
2014-02-02py: Add very basic implementation of dir() builtin.Damien George
Only works on modules and class instances.
2014-02-02Fix thinko with how bitfields were added to mp_obj_fun_native_t.Paul Sokolovsky
Structure is back to expected 16 bytes.
2014-02-02Merge branch 'xbe-master'Damien George
2014-02-02Change id to return signed integer.Damien George
2014-02-02Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-02-02py: Partially fix native emitter to work with latest runtime.Damien George
Native emitter has been broken since stack order has changed from reverse to standard. This fix gets it partially working.
2014-02-02Fix assert() usage.Paul Sokolovsky
2014-02-02unix time.clock(): Actually return float value.Paul Sokolovsky
2014-02-02Implement str/bytes rich comparisons.Paul Sokolovsky
2014-02-01Implement and add tests for the id() builtin function.xbe
2014-02-02Implement slicing for tuples.Paul Sokolovsky
2014-02-02Implement slicing for lists.Paul Sokolovsky
2014-02-02Factor out m_seq_get_fast_slice_indexes() fucntions as sequence helper.Paul Sokolovsky
Takes slice object and sequence length and computes subsequence indexes for case of slice step=1.
2014-02-02unix: Add basic time module (with time() and clock() functions).Paul Sokolovsky
Both return int so far (single-precision float doesn't have enough bits to represent int32 precisely).
2014-02-02Add testcase for sequence unpacking.Paul Sokolovsky
2014-02-02rt_unpack_sequence(): Support generic iterables.Paul Sokolovsky
2014-02-01Tidy up some comments.Damien George
2014-02-01py: Tidy up BINARY_OPs; negation done by special NOT bytecode.Damien George
IS_NOT and NOT_IN are now compiled to IS + NOT and IN + NOT, with a new special NOT bytecode.
2014-02-01py: Reduce code size of compiler by a bit.Damien George
2014-02-01py: Fix emitcpy so continue is compatible with CPython.Damien George
2014-02-01py: Implement break/continue from an exception with finally.Damien George
Still todo: break/continue from within the finally block itself.
2014-02-01unix: libffi include path now found using pkg-config.Damien George
Hopefully this works for other people as well :)
2014-02-01Merge pull request #254 from pfalcon/config-modulesDamien George
Add mpconfigport.mk file to configure which modules to include into build
2014-02-01py: mp_execute_byte_code has 2 arg arrays, for more efficient default params.Damien George
2014-02-01Add mpconfigport.mk file to configure which modules to include into build.Paul Sokolovsky
Proof of concept, controls "ffi" module as one which requires external dependencies.
2014-02-01Merge branch 'fun-defargs' of github.com:pfalcon/micropython into ↵Damien George
pfalcon-fun-defargs
2014-02-01Merge pull request #251 from pfalcon/return_unwindDamien George
Add exception stack unwind support for RETURN_VALUE.
2014-02-01Merge branch 'iabdalkader-master'Damien George
Conflicts: stm/usb.c stm/usb.h
2014-02-01stm: Add support for ctrl-C to interrupt running Python.Damien George
Using PendSV interrupt at lowest priority, code can now raise an exception during an interrupt by calling pendsv_nlr_jump. The exception will be raised when all interrupts are finished. This is used to trap ctrl-C from the USB VCP to break out of running Python code.
2014-02-01Add usb_vcp_connected prototype to usb.hmux
2014-02-01Implement default function arguments (for Python functions).Paul Sokolovsky
TODO: Decide if we really need separate bytecode for creating functions with default arguments - we would need same for closures, then there're keywords arguments too. Having all combinations is a small exponential explosion, likely we need just 2 cases - simplest (no defaults, no kw), and full - defaults & kw.
2014-02-01Add exception stack unwind support for RETURN_VALUE.Paul Sokolovsky
This properly implements return from try/finally block(s). TODO: Consider if we need to do any value stack unwinding for RETURN_VALUE case. Intuitively, this is "success" return, so value stack should be in good shape, and unwinding shouldn't be required.
2014-02-01Detect VCP line state.mux
* Detect VCP line state, based on SET_CONTROL_LINE_STATE request
2014-01-31Merge pull request #246 from pfalcon/exc_stack_entryDamien George
vm: Introduce structure for exception stack entry, record entry type.
2014-01-31py: Simplified rt_call_function_n_kw.Damien George
2014-01-31Merge branch 'fix_str_call' of github.com:msiemens/micropython into ↵Damien George
msiemens-fix_str_call
2014-01-31py: Make str.replace do 2 passes over the string.Damien George
2014-01-31Merge branch 'master' of github.com:xbe/micropython into xbe-masterDamien George
2014-01-31Fix SIGSEV when running "a"()Markus Siemens
rt_call_function_n_kw did check for integers but not for strings being called. Added a check so running "a"() won't SIGSEV but throw an exception.
2014-01-31Add basic try-finally testcase.Paul Sokolovsky
It's mildly suprising these work without further changes to exception handling code (the only change required was to handle SETUP_FINALLY).
2014-01-31Update VM stacks comments.Paul Sokolovsky