- 08 Mar, 2014 1 commit
-
-
Damien George authored
mp_module_obj_t can now be put in ROM. Configuration of float type is now similar to longint: can now choose none, float or double as the implementation. math module has basic math functions. For STM port, these are not yet implemented (they are just stub functions).
-
- 03 Mar, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 15 Feb, 2014 2 commits
-
-
Damien George authored
Each built-in exception is now a type, with base type BaseException. C exceptions are created by passing a pointer to the exception type to make an instance of. When raising an exception from the VM, an instance is created automatically if an exception type is raised (as opposed to an exception instance). Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper. Handling of parse error changed to match new exceptions. mp_const_type renamed to mp_type_type for consistency.
-
Damien George authored
Ultimately all static strings should be qstr. This entry in the type structure is only used for printing error messages (to tell the type of the bad argument), and printing objects that don't supply a .print method.
-
- 09 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 08 Feb, 2014 1 commit
-
-
Damien George authored
-
- 06 Feb, 2014 1 commit
-
-
Damien George authored
-
- 05 Feb, 2014 1 commit
-
-
Damien George authored
-
- 04 Feb, 2014 3 commits
-
-
Paul Sokolovsky authored
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.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 03 Feb, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
-
- 02 Feb, 2014 2 commits
-
-
Damien George authored
Only works on modules and class instances.
-
xbe authored
-
- 30 Jan, 2014 1 commit
-
-
Damien George authored
-
- 25 Jan, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Addresses Issue #203.
-
- 24 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
Also, add qstr's for string appearing in unix REPL loop, gross effect being less allocations for each command run.
-
- 21 Jan, 2014 1 commit
-
-
Damien George authored
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
-
- 20 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
Currently, MicroPython strings are mix between CPython byte and unicode strings. So, conversion is null so far. This dummy implementation is intended for compatibility with CPython (so, same code can run on both).
-
- 18 Jan, 2014 2 commits
-
-
Paul Sokolovsky authored
So far, only storage, initialization, repr() and buffer protocol is implemented - alredy suitable for passing binary data around.
-
Paul Sokolovsky authored
-
- 15 Jan, 2014 6 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
Parser no longer prints an error, but instead returns an exception ID and message.
-
John R. Lenton authored
-
John R. Lenton authored
-
Paul Sokolovsky authored
-
- 14 Jan, 2014 1 commit
-
-
John R. Lenton authored
-
- 13 Jan, 2014 2 commits
-
-
John R. Lenton authored
-
John R. Lenton authored
-
- 09 Jan, 2014 1 commit
-
-
Damien George authored
-
- 08 Jan, 2014 1 commit
-
-
xbe authored
-
- 07 Jan, 2014 2 commits
-
-
John R. Lenton authored
-
Paul Sokolovsky authored
-
- 04 Jan, 2014 3 commits
-
-
Damien George authored
Now much more inline with how CPython does types.
-
Damien George authored
-
Damien George authored
Qstr's are now split into a linked-list of qstr pools. This has 2 benefits: the first pool can be in ROM (huge benefit, since we no longer use RAM for the core qstrs), and subsequent pools use m_new for the next pool instead of m_renew (thus avoiding a huge single table for all the qstrs). Still would be better to use a hash table, but this scheme takes us part of the way (eventually convert the pools to hash tables). Also fixed bug with import. Also improved the way the module code is referenced (not magic number 1 anymore).
-