summaryrefslogtreecommitdiffstatshomepage
path: root/py/builtintables.c
Commit message (Collapse)AuthorAge
* py: Implement globals() and locals() builtins.Paul Sokolovsky2014-04-06
|
* py: Make globals and locals proper dictionary objects.Damien George2014-04-05
| | | | | | | | | | | Finishes addressing issue #424. In the end this was a very neat refactor that now makes things a lot more consistent across the py code base. It allowed some simplifications in certain places, now that everything is a dict object. Also converted builtins tables to dictionaries. This will be useful when we need to turn builtins into a proper module.
* py: Put default namespace into module __main__.Paul Sokolovsky2014-04-05
| | | | That's how CPython has it, in particular, "import __main__" should work.
* py: Add "io" module.Paul Sokolovsky2014-04-03
| | | | | | So far just includes "open" function, which should be supplied by a port. TODO: Make the module #ifdef'ed.
* py: Rename old const type objects to mp_type_* for consistency.Damien George2014-03-29
|
* py: Change mp_const_* objects to macros.Damien George2014-03-29
| | | | Addresses issue #388.
* py: Thin out predefined exceptions.Damien George2014-03-27
| | | | | Only exceptions that are actually used are left prefedined. Hierarchy is still there, and removed exceptions are just commented out.
* py: Implement getattr() builtin.Paul Sokolovsky2014-03-27
|
* py: Removed some unnecessary exception objects.Damien George2014-03-25
| | | | | They still exist in commented-out form in objexcept.c if they are ever needed.
* Proper support for registering builtin modules in ROM.Damien George2014-03-25
Comes with some refactoring of code and renaming of files. All modules are now named mod*.[ch].