217 Commits (096adca0c88cd779b3e5e391e42db1d46f87bba1)

Author SHA1 Message Date
Damien George dbdfee15a1 py: Add cmath module, for complex math. Disabled by default. 11 years ago
Damien George 897fe0c0d0 py: Add builtin functions bin and oct, and some tests for them. 11 years ago
Damien George b013aea809 py: Fix builtin hex to print prefix. 11 years ago
Damien George 5805111732 py: Add hex builtin function. 11 years ago
Paul Sokolovsky bbae42d62f modsys: Implement sys.version. 11 years ago
Paul Sokolovsky 14de114ba8 objdict: Add __delitem__. 11 years ago
Damien George 777b0f32f4 py: Add property object, with basic functionality. 11 years ago
Paul Sokolovsky 978d2c0267 modsys: Implement sys.byteorder. 11 years ago
Paul Sokolovsky baaaf65eaa modsys: Implement basic sys.version_info. 11 years ago
Paul Sokolovsky 036ad76659 objset: Implement __contains__() op-method. 11 years ago
Paul Sokolovsky 48fdaad824 py: Rename collections module to _collections. 11 years ago
Paul Sokolovsky a3e50eacca py: Move sys attribute qstrs's to core. 11 years ago
Paul Sokolovsky 73b7027b83 objstr: Add str.encode() and bytes.decode() methods. 11 years ago
Paul Sokolovsky 13d52df4c5 builtinimport: Set __path__ attribute on packages. 11 years ago
Paul Sokolovsky a925cb54f1 py: Preprocess qstrdefs.h before feeding to makeqstrdata.py. 11 years ago
Paul Sokolovsky e9db840480 py: Start implementing "struct" module. 11 years ago
Paul Sokolovsky a985b4593d objint: Implement int.from_bytes() class method and .to_bytes() method. 11 years ago
xbe 3d9a39e211 py: Implement str.[r]index() and add tests for them. 11 years ago
Damien George 27e735fd18 py: Replace stream_p with *stream_p in mp_obj_type_t. 11 years ago
Paul Sokolovsky cc0af3d727 py: Implement globals() and locals() builtins. 11 years ago
mux cc849f70f4 Move del to locals 11 years ago
Paul Sokolovsky 98a627dc03 py: Add "io" module. 11 years ago
Damien George 4881566874 py: Add support for sep and end keywords in print. 11 years ago
Damien George e44d26ae0c py: Implement __getattr__. 11 years ago
Paul Sokolovsky 44307d5ef8 vm: Implement "with" statement (SETUP_WITH and WITH_CLEANUP bytecodes). 11 years ago
Paul Sokolovsky e9137b94f2 py: Implement getattr() builtin. 11 years ago
Damien George c12b2213c1 Change mp_method_t.name from const char * to qstr. 11 years ago
Damien George 9e6e935df0 py: Add support for user-defined iterators via __iter__, __next__. 11 years ago
Damien George ffb5cfc8d8 py: Removed some unnecessary exception objects. 11 years ago
Paul Sokolovsky 9512e9e817 objexcept: Add "args" exception attribute, as well as StopIteration.value. 11 years ago
Damien George c91097223d py: Remove some unnecessary exception objects. 11 years ago
Damien George 3ec0a1a32d py: Add 'object' object. 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 249b9c761d Fixed broken math functions that return bool and added some more. 11 years ago
Rachel Dowdall 300c8bd4c2 Added ZeroDivisionError to float division. 11 years ago
Rachel Dowdall 5a14a1d690 Added various simple functions to math module. 11 years ago
Damien George a925639247 py: Add math.e constant. 11 years ago
Paul Sokolovsky 51bbf6a006 Implement support for __str__ and __repr__ special methods in classes. 11 years ago
Damien George 8854e1fa05 py: Add expm1 to math module. 11 years ago
Damien George 0c36da0b59 Implement ROMable modules. Add math module. 11 years ago
Paul Sokolovsky d08fd68664 Add basic collections.namedtuple implementation. 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
Paul Sokolovsky 76f06de96d Add NotImplementedError. 11 years ago
Damien George 7d0bfbedd2 py: Add some qstrs to the global table. 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 e11b17c25f Implement support for sys.path when loading modules. 11 years ago
Paul Sokolovsky 0c59db1973 Use qstr id to create sys module. 11 years ago
Paul Sokolovsky 7cd54d79db Add ImportError. 11 years ago