summaryrefslogtreecommitdiffstatshomepage
path: root/py/qstrdefs.h
Commit message (Collapse)AuthorAge
* Implement proper exception type hierarchy.Damien George2014-02-15
| | | | | | | | | | | | | | 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.
* Change mp_obj_type_t.name from const char * to qstr.Damien George2014-02-15
| | | | | | 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.
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-02-10
|\
| * Add NotImplementedError.Paul Sokolovsky2014-02-09
| |
* | py: Add some qstrs to the global table.Damien George2014-02-08
|/
* Add staticmethod and classmethod to builtin namespace.Damien George2014-02-06
|
* Merge pull request #262 from pfalcon/sys-pathDamien George2014-02-05
|\ | | | | Implement sys.path support
| * Implement support for sys.path when loading modules.Paul Sokolovsky2014-02-05
| | | | | | | | | | | | | | | | 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.
* | py: Add built-in super.Damien George2014-02-05
|/
* Use qstr id to create sys module.Paul Sokolovsky2014-02-04
|
* Add ImportError.Paul Sokolovsky2014-02-04
|
* Expose __import__() function.Paul Sokolovsky2014-02-04
|
* py: Implement builtin exec.Damien George2014-02-03
|
* py: Add very basic implementation of dir() builtin.Damien George2014-02-02
| | | | Only works on modules and class instances.
* Implement and add tests for the id() builtin function.xbe2014-02-01
|
* py: Improve __bool__ and __len__ dispatch; add slots for them.Damien George2014-01-30
|
* Implement mp_parse_node_free; print properly repr(string).Damien George2014-01-25
|
* py: Implement iterator support for object that has __getitem__.Damien George2014-01-25
| | | | Addresses Issue #203.
* Allow qstr's with non-ident chars, construct good identifier for them.Paul Sokolovsky2014-01-24
| | | | | Also, add qstr's for string appearing in unix REPL loop, gross effect being less allocations for each command run.
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-01-21
| | | | | | | | | Conflicts: py/objstr.c py/py.mk py/stream.c unix/main.c unix/socket.c
* Revamp qstrs: they now include length and hash.Damien George2014-01-21
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h