125 Commits (14b8203a99f2ee67cea86711631fc5d939afd540)

Author SHA1 Message Date
Damien George df6567e634 Merge map.h into obj.h. 11 years ago
Damien George d17926db71 Rename rt_* to mp_*. 11 years ago
Damien George 3e1a5c10c5 py: Rename old const type objects to mp_type_* for consistency. 11 years ago
Damien George 07ddab529c py: Change mp_const_* objects to macros. 11 years ago
Paul Sokolovsky c4d589e2bb objgenerator: close(): Throw instance of GeneratorExit (not type). 11 years ago
Damien George c63f984647 py: Thin out predefined exceptions. 11 years ago
Damien George bee17b00e3 py: Put n_state for bytecode in the bytecode prelude. 11 years ago
Damien George 9b196cddab Remove mp_obj_type_t.methods entry and use .locals_dict instead. 11 years ago
Damien George c12b2213c1 Change mp_method_t.name from const char * to qstr. 11 years ago
Damien George 66eaf84b8c py: Replace mp_const_stop_iteration object with MP_OBJ_NULL. 11 years ago
Damien George 9e6e935df0 py: Add support for user-defined iterators via __iter__, __next__. 11 years ago
Paul Sokolovsky af1ae30399 objexcept: Add mp_obj_exception_get_value() convenience function. 11 years ago
Paul Sokolovsky 962b1cd1b1 objgenerator: Implement return with value and .close() method. 11 years ago
Damien George ffb5cfc8d8 py: Removed some unnecessary exception objects. 11 years ago
Damien George caac542b23 Proper support for registering builtin modules in ROM. 11 years ago
mux 89d45248ee Add mp_obj_module_register 11 years ago
Damien George 24ff063e80 py: Remove obsolete declarations; make mp_obj_get_array consistent. 11 years ago
Damien George 3ec0a1a32d py: Add 'object' object. 11 years ago
Damien George eabdf6718a py: Add function to convert long int to float. 11 years ago
Rachel Dowdall 721c55dced Added exception hierarchy except for OSError and UnicodeError (requires arguments). Comment out the errors that aren't needed if memory becomes an issue. 11 years ago
Rachel Dowdall 300c8bd4c2 Added ZeroDivisionError to float division. 11 years ago
Damien George 7f8be59111 py: Allow hashing of functions and tuples. 11 years ago
xbe 9e1e8cd642 Implement str.count and add tests for it. 11 years ago
Damien George 9d68e9ccdd py: Implement integer overflow checking for * and << ops. 11 years ago
Damien George 0c36da0b59 Implement ROMable modules. Add math module. 11 years ago
Damien George 715101580b py: Factor and improve issubclass. 11 years ago
Paul Sokolovsky d86d22e1e7 Add mp_obj_is_subclass_fast() - intended for fast argument checking. 11 years ago
Damien George d5e81826ec py: Reduce size of mp_obj_fun_native_t struct by packing ints. 11 years ago
Damien George 510477557d py: Take out bitfield entries from their own structure. 11 years ago
Damien George 1dc76af7bf py: Remove name of var arg from macros with var args. 11 years ago
Damien George 438c88dd2f Add arbitrary precision integer support. 11 years ago
Paul Sokolovsky ac2e28c654 Support passing positional args as keywords to bytecode functions. 11 years ago
Damien George 2e482cdb7b py: Implement *vargs support. 11 years ago
Damien George c5966128c7 Implement proper exception type hierarchy. 11 years ago
Damien George a71c83a1d1 Change mp_obj_type_t.name from const char * to qstr. 11 years ago
Damien George 099a9cb575 Remove mp_obj_new_exception_msg_1_arg and _2_arg. 11 years ago
Paul Sokolovsky ac0134d427 Factor out mp_seq_count_obj() and implement tuple.count(). 11 years ago
Paul Sokolovsky 0cd1dc06e6 Factor out mp_seq_index_obj() function to implement .index() on sequences. 11 years ago
Paul Sokolovsky ee4aaf7cdd Implement tuple addition. 11 years ago
Paul Sokolovsky 1a996c48ac Refactor list comparison code to mp_seq_cmp_objs(). 11 years ago
Paul Sokolovsky 557c9d5264 unix microsocket: Add dummy makefile() method. 11 years ago
Damien George 698ec21e46 Make mp_obj_str_get_data return char* instead of byte*. 11 years ago
Damien George 64131f3215 Add staticmethod and classmethod to builtin namespace. 11 years ago
Damien George 35e2a4e6bb py: Add built-in super. 11 years ago
Paul Sokolovsky 0473e2790b Fix thinko with how bitfields were added to mp_obj_fun_native_t. 11 years ago
Paul Sokolovsky 87e85b7dc7 Implement str/bytes rich comparisons. 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 90750029df Implement default function arguments (for Python functions). 11 years ago
Damien George d0691ccaec py: Simplify fastn in VM; reduce size of unique code struct. 11 years ago