46 Commits (3aa8ee7c9e2e9fd50ffb4b588518bd84b40fef84)

Author SHA1 Message Date
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
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
xbe 0ebf8534ab Implement and add tests for the id() builtin function. 11 years ago
Damien George 09a0c64bce py: Improve __bool__ and __len__ dispatch; add slots for them. 11 years ago
Damien George b829b5caec Implement mp_parse_node_free; print properly repr(string). 11 years ago
Damien George 7c9c667633 py: Implement iterator support for object that has __getitem__. 11 years ago
Paul Sokolovsky ab5d08280b Allow qstr's with non-ident chars, construct good identifier for them. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago
Paul Sokolovsky a80ff04fe7 Add dummy bytes() constructor. 11 years ago
Paul Sokolovsky 427905cedd Add skeleton implementation of array.array and bytearray. 11 years ago
Paul Sokolovsky 166bb40fb2 Add OverflowError and use it for small int overflow instead of assert. 11 years ago
Damien George d02c6d8962 Implement eval. 11 years ago
Damien George e2fb2baaa4 Implement repr. 11 years ago
Damien George 9528cd66d7 Convert parse errors to exceptions. 11 years ago
John R. Lenton fca456bc3c added filter() 11 years ago
John R. Lenton 39b174e00a Added map 11 years ago
Paul Sokolovsky 36c4499d36 Implement str() and repr() builtin functions. 11 years ago