519 Commits (21c51f0bdead583cda2271b6370e65ce3ff53258)

Author SHA1 Message Date
Damien George 0a587b85fb py: Pass keyword args to native functions by using the stack. 11 years ago
Damien George 9a58d760c3 py: Allow mp_map_t to be initialised by a fixed-size, const table. 11 years ago
Damien George 698ec21e46 Make mp_obj_str_get_data return char* instead of byte*. 11 years ago
Damien George aea532ece1 py: Put builtins into ROM table. 11 years ago
Damien George 354d15a964 Implement fixed buffer vstrs; use them for import path. 11 years ago
Damien George 64131f3215 Add staticmethod and classmethod to builtin namespace. 11 years ago
Damien George ddaf6c112c py: More output in showbc. 11 years ago
Damien George bbcd49a496 py: Fix compile of class with keyword arguments in bases. 11 years ago
Damien George e09ffa1400 Search paths properly on import and execute __init__.py if it exists. 11 years ago
Damien George b8ec17c2d1 py: Fix bug with dual initialisation of RT_UNARY_OP_NOT. 11 years ago
Damien George 35e2a4e6bb py: Add built-in super. 11 years ago
Paul Sokolovsky 9110896063 Remove older import helpers, no longer used. 11 years ago
Paul Sokolovsky e11b17c25f Implement support for sys.path when loading modules. 11 years ago
Paul Sokolovsky 6e6b888e31 Add generic MIN()/MAX() functions. 11 years ago
Paul Sokolovsky e5a15cb7a5 mp_obj_new_list(n, items): Copy items only if not-NULL. 11 years ago
Paul Sokolovsky 0c59db1973 Use qstr id to create sys module. 11 years ago
Paul Sokolovsky 7cd54d79db Add ImportError. 11 years ago
Paul Sokolovsky 1d938c9503 Expose __import__() function. 11 years ago
Damien George ca4767984b py: Implement builtin exec. 11 years ago
Damien George 4acb2452b3 py: Add very basic implementation of dir() builtin. 11 years ago
Paul Sokolovsky 0473e2790b Fix thinko with how bitfields were added to mp_obj_fun_native_t. 11 years ago
Damien George 330cf6d04a Change id to return signed integer. 11 years ago
Damien George cd82e02e84 py: Partially fix native emitter to work with latest runtime. 11 years ago
Paul Sokolovsky ea2509d92c Fix assert() usage. 11 years ago
Paul Sokolovsky 87e85b7dc7 Implement str/bytes rich comparisons. 11 years ago
xbe 0ebf8534ab Implement and add tests for the id() builtin function. 11 years ago
Paul Sokolovsky 9ed5435061 Implement slicing for tuples. 11 years ago
Paul Sokolovsky 13cfabd1b2 Implement slicing for lists. 11 years ago
Paul Sokolovsky 7364af2d8c Factor out m_seq_get_fast_slice_indexes() fucntions as sequence helper. 11 years ago
Paul Sokolovsky edbdf71f5c rt_unpack_sequence(): Support generic iterables. 11 years ago
Damien George 48697f1dd2 Tidy up some comments. 11 years ago
Damien George 9aa2a527b5 py: Tidy up BINARY_OPs; negation done by special NOT bytecode. 11 years ago
Damien George 7e5fb24e3b py: Reduce code size of compiler by a bit. 11 years ago
Damien George e24b563796 py: Fix emitcpy so continue is compatible with CPython. 11 years ago
Damien George cbddb279bb py: Implement break/continue from an exception with finally. 11 years ago
Damien George fb083ea986 py: mp_execute_byte_code has 2 arg arrays, for more efficient default params. 11 years ago
Paul Sokolovsky 90750029df Implement default function arguments (for Python functions). 11 years ago
Paul Sokolovsky 6472dea146 Add exception stack unwind support for RETURN_VALUE. 11 years ago
Damien George 8b56beb1a1 py: Simplified rt_call_function_n_kw. 11 years ago
Damien George 94f68300f9 py: Make str.replace do 2 passes over the string. 11 years ago
Markus Siemens 2c2a124e16 Fix SIGSEV when running "a"() 11 years ago
Paul Sokolovsky 8519342c1a Update VM stacks comments. 11 years ago
Paul Sokolovsky c7a0b14df9 vm: Introduce structure for exception stack entry, record entry type. 11 years ago
Paul Sokolovsky 7ee8e46878 Dump 4 more bytecodes (loop and finally ones). 11 years ago
Paul Sokolovsky 027594e1a7 Typo fixes in comments. 11 years ago
xbe 480c15afb5 Implement str.replace and add tests for it. 11 years ago
Damien George 3f759b71c6 py: Add MICROPY_ENABLE_FLOAT around a float specific piece of code. 11 years ago
Damien George 39631bc312 Fix Makefiles: -O3 option was not being applied; mkdir for STM. 11 years ago
Paul Sokolovsky 382e8eeea2 vm: Add basic implementation of END_FINALLY opcode. 11 years ago
Damien George 09a0c64bce py: Improve __bool__ and __len__ dispatch; add slots for them. 11 years ago