summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* Add additional testcase for finally/return.Paul Sokolovsky2014-02-06
|
* Search paths properly on import and execute __init__.py if it exists.Damien George2014-02-05
|
* Merge pull request #262 from pfalcon/sys-pathDamien George2014-02-05
|\ | | | | Implement sys.path support
| * Remove older import helpers, no longer used.Paul Sokolovsky2014-02-05
| |
| * unix: Be sure to add current/base dir of a script to sys.path.Paul Sokolovsky2014-02-05
| | | | | | | | | | This mirrors CPython behavior and makes possible to run scripts which import other modules not from script's directory.
| * unix: Initialize sys.path from MICROPYPATH environment variable.Paul Sokolovsky2014-02-05
| | | | | | | | | | If it's not available, "~/.micropython/lib:/usr/lib/micropython" is used as a fallback.
| * Implement support for sys.path when loading modules.Paul Sokolovsky2014-02-05
| | | | | | | | | | | | | | | | sys.path is not initialized by rt_init(), that's left for platform-specific startup code. (For example, bare metal port may have some hardcoded defaults, and let user change sys.path directly; while port for OS with environment feature can take path from environment). If it's not explicitly initialized, modules will be imported only from a current directory.
| * Add generic MIN()/MAX() functions.Paul Sokolovsky2014-02-05
| |
* | py: Fix bug with dual initialisation of RT_UNARY_OP_NOT.Damien George2014-02-05
| | | | | | | | Fixes Issue #261.
* | py: Add built-in super.Damien George2014-02-05
|/
* Merge pull request #259 from dhylands/netduinoDamien George2014-02-04
|\ | | | | Initial support for Netduino
| * Initial support for NetduinoDave Hylands2014-02-03
| | | | | | | | | | This also fixes up the IRQ for the PYBOARD4 USERSW although I was unable to test that functionality.
* | mp_obj_new_list(n, items): Copy items only if not-NULL.Paul Sokolovsky2014-02-04
| | | | | | | | Similar to mp_obj_new_tuple().
* | Use qstr id to create sys module.Paul Sokolovsky2014-02-04
| |
* | Add ImportError.Paul Sokolovsky2014-02-04
|/
* Fix unstable case in builtin_id.py test.Paul Sokolovsky2014-02-04
|
* Expose __import__() function.Paul Sokolovsky2014-02-04
|
* py: Implement builtin exec.Damien George2014-02-03
|
* py: Add very basic implementation of dir() builtin.Damien George2014-02-02
| | | | Only works on modules and class instances.
* Fix thinko with how bitfields were added to mp_obj_fun_native_t.Paul Sokolovsky2014-02-02
| | | | Structure is back to expected 16 bytes.
* Merge branch 'xbe-master'Damien George2014-02-02
|\
| * Change id to return signed integer.Damien George2014-02-02
| |
| * Implement and add tests for the id() builtin function.xbe2014-02-01
| |
* | Merge branch 'master' of github.com:micropython/micropythonDamien George2014-02-02
|\ \
| * | Fix assert() usage.Paul Sokolovsky2014-02-02
| | |
| * | unix time.clock(): Actually return float value.Paul Sokolovsky2014-02-02
| | |
| * | Implement str/bytes rich comparisons.Paul Sokolovsky2014-02-02
| |/
| * Implement slicing for tuples.Paul Sokolovsky2014-02-02
| |
| * Implement slicing for lists.Paul Sokolovsky2014-02-02
| |
| * Factor out m_seq_get_fast_slice_indexes() fucntions as sequence helper.Paul Sokolovsky2014-02-02
| | | | | | | | | | Takes slice object and sequence length and computes subsequence indexes for case of slice step=1.
| * unix: Add basic time module (with time() and clock() functions).Paul Sokolovsky2014-02-02
| | | | | | | | | | Both return int so far (single-precision float doesn't have enough bits to represent int32 precisely).
| * Add testcase for sequence unpacking.Paul Sokolovsky2014-02-02
| |
| * rt_unpack_sequence(): Support generic iterables.Paul Sokolovsky2014-02-02
| |
* | py: Partially fix native emitter to work with latest runtime.Damien George2014-02-02
|/ | | | | Native emitter has been broken since stack order has changed from reverse to standard. This fix gets it partially working.
* Tidy up some comments.Damien George2014-02-01
|
* py: Tidy up BINARY_OPs; negation done by special NOT bytecode.Damien George2014-02-01
| | | | | IS_NOT and NOT_IN are now compiled to IS + NOT and IN + NOT, with a new special NOT bytecode.
* py: Reduce code size of compiler by a bit.Damien George2014-02-01
|
* py: Fix emitcpy so continue is compatible with CPython.Damien George2014-02-01
|
* py: Implement break/continue from an exception with finally.Damien George2014-02-01
| | | | Still todo: break/continue from within the finally block itself.
* unix: libffi include path now found using pkg-config.Damien George2014-02-01
| | | | Hopefully this works for other people as well :)
* Merge pull request #254 from pfalcon/config-modulesDamien George2014-02-01
|\ | | | | Add mpconfigport.mk file to configure which modules to include into build
| * Add mpconfigport.mk file to configure which modules to include into build.Paul Sokolovsky2014-02-01
| | | | | | | | | | Proof of concept, controls "ffi" module as one which requires external dependencies.
* | py: mp_execute_byte_code has 2 arg arrays, for more efficient default params.Damien George2014-02-01
| |
* | Merge branch 'fun-defargs' of github.com:pfalcon/micropython into ↵Damien George2014-02-01
|\ \ | |/ |/| | | pfalcon-fun-defargs
| * Implement default function arguments (for Python functions).Paul Sokolovsky2014-02-01
| | | | | | | | | | | | | | | | 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.
* | Merge pull request #251 from pfalcon/return_unwindDamien George2014-02-01
|\ \ | | | | | | Add exception stack unwind support for RETURN_VALUE.
| * | Add exception stack unwind support for RETURN_VALUE.Paul Sokolovsky2014-02-01
| |/ | | | | | | | | | | | | | | 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.
* | Merge branch 'iabdalkader-master'Damien George2014-02-01
|\ \ | | | | | | | | | | | | | | | Conflicts: stm/usb.c stm/usb.h
| * | Add usb_vcp_connected prototype to usb.hmux2014-02-01
| | |
| * | Detect VCP line state.mux2014-02-01
| |/ | | | | | | * Detect VCP line state, based on SET_CONTROL_LINE_STATE request