40 Commits (3fd2d7fad2022e3f26304fbc6ad74e6d8dd66e5f)

Author SHA1 Message Date
Paul Sokolovsky a5854d2bc5 builtinimport: Add basic support for namespace packages. 11 years ago
Damien George 49f20b841d py: Add more #if's for configurable MOD_SYS. 11 years ago
Damien George 4b01de44ba py: Add traceback info to syntax errors. 11 years ago
Paul Sokolovsky 5500cdeec7 py, unix: Convert sys module to static representation. 11 years ago
Paul Sokolovsky a5afc9009f builtinimport: Implement relative imports. 11 years ago
Paul Sokolovsky 2ff3d9d0b2 builtinimport: Set __path__ attribute ASAP as it's clear we have a package. 11 years ago
Paul Sokolovsky 13d52df4c5 builtinimport: Set __path__ attribute on packages. 11 years ago
Paul Sokolovsky e081329098 builtinimport: Elaborate debug output support. 11 years ago
Andrew Scheller f78cfaf8b5 Remove exception name from inside the exception message 11 years ago
Damien George 65cad12d38 py: Add option to compiler to specify default code emitter. 11 years ago
Damien George 7efc5b3f34 py: Make globals and locals proper dictionary objects. 11 years ago
Damien George 8b0535e23f py: Change module globals from mp_map_t* to mp_obj_dict_t*. 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Damien George df6567e634 Merge map.h into obj.h. 11 years ago
Damien George d17926db71 Rename rt_* to mp_*. 11 years ago
Damien George caac542b23 Proper support for registering builtin modules in ROM. 11 years ago
Damien George 24ff063e80 py: Remove obsolete declarations; make mp_obj_get_array consistent. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Damien George 280e7208d8 Add vstr_ins and vstr_cut_out; improve stmhal readline. 11 years ago
Paul Sokolovsky feacaa12ac __import__: Catch relative import attempts and throw NotImplementedError. 11 years ago
Paul Sokolovsky fb7f94392d import: Implement "from pkg.mod import sym" syntax properly. 11 years ago
Paul Sokolovsky 91ba7a54c5 builtinimport: Get the basic (and only basic) package imports work. 11 years ago
Paul Sokolovsky d3783570a4 builtinimport.c: Recognize "namespace package" and error out as unsupported. 11 years ago
Damien George c5966128c7 Implement proper exception type hierarchy. 11 years ago
Damien George 698ec21e46 Make mp_obj_str_get_data return char* instead of byte*. 11 years ago
Damien George 354d15a964 Implement fixed buffer vstrs; use them for import path. 11 years ago
Damien George e09ffa1400 Search paths properly on import and execute __init__.py if it exists. 11 years ago
Paul Sokolovsky e11b17c25f Implement support for sys.path when loading modules. 11 years ago
Paul Sokolovsky 1d938c9503 Expose __import__() function. 11 years ago
Damien George b829b5caec Implement mp_parse_node_free; print properly repr(string). 11 years ago
Damien George 5fa93b6755 Second stage of qstr revamp: uPy str object can be qstr or not. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago
Paul Sokolovsky d720ab5236 Implement modules as singletons Python semantics. 11 years ago
Damien George 08335004cf Add source file name and line number to error messages. 11 years ago
Damien George 9528cd66d7 Convert parse errors to exceptions. 11 years ago
Damien George 2300537c79 Cleanup built-ins, and fix some compiler warnings/errors. 11 years ago
ian-v 5fd8fd2c16 Revert MP_BOOL, etc. and use <stdbool.h> instead 11 years ago
ian-v 7a16fadbf8 Co-exist with C++ (issue #85) 11 years ago
Damien George eb7bfcb286 Split qstr into pools, and put initial pool in ROM. 11 years ago
Damien George 1fb031744f Change mp_compile so that it returns a function object for the module. 11 years ago
Damien George 66028ab6dc Basic implementation of import. 11 years ago