summaryrefslogtreecommitdiff
path: root/py/builtintables.c
AgeCommit message (Collapse)Author
2014-04-17py: Make built-in 'range' a class.Damien George
Addresses issue #487.
2014-04-17py: Add cmath module, for complex math. Disabled by default.Damien George
Not all functions implemented. Not enabled on pyboard.
2014-04-15py: Add builtin functions bin and oct, and some tests for them.Damien George
2014-04-15py: Add hex builtin function.Damien George
A one-liner, added especially for @pfalcon :)
2014-04-13py: Add property object, with basic functionality.Damien George
Enabled by MICROPY_ENABLE_PROPERTY.
2014-04-13py: Add more #if's for configurable MOD_SYS.Damien George
2014-04-13Merge pull request #476 from pfalcon/static-sysDamien George
Convert sys module to static allocation
2014-04-13py: Rename collections module to _collections.Paul Sokolovsky
We're not going to implement all the plethora of types in there in C. Funnily, CPython implements defaultdict in C, and namedtuple in Python.
2014-04-13py, unix: Convert sys module to static representation.Paul Sokolovsky
2014-04-10py: Start implementing "struct" module.Paul Sokolovsky
Only calcsize() and unpack() functions provided so far, for little-endian byte order. Format strings don't support repition spec (like "2b3i"). Unfortunately, dealing with all the various binary type sizes and alignments will lead to quite a bloated "binary" helper functions - if optimizing for speed. Need to think if using dynamic parametrized algos makes more sense.
2014-04-08py: Make bytearray a proper type.Paul Sokolovsky
2014-04-06py: Implement globals() and locals() builtins.Paul Sokolovsky
2014-04-05py: Make globals and locals proper dictionary objects.Damien George
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.
2014-04-05py: Put default namespace into module __main__.Paul Sokolovsky
That's how CPython has it, in particular, "import __main__" should work.
2014-04-03py: Add "io" module.Paul Sokolovsky
So far just includes "open" function, which should be supplied by a port. TODO: Make the module #ifdef'ed.
2014-03-29py: Rename old const type objects to mp_type_* for consistency.Damien George
2014-03-29py: Change mp_const_* objects to macros.Damien George
Addresses issue #388.
2014-03-27py: Thin out predefined exceptions.Damien George
Only exceptions that are actually used are left prefedined. Hierarchy is still there, and removed exceptions are just commented out.
2014-03-27py: Implement getattr() builtin.Paul Sokolovsky
2014-03-25py: Removed some unnecessary exception objects.Damien George
They still exist in commented-out form in objexcept.c if they are ever needed.
2014-03-25Proper support for registering builtin modules in ROM.Damien George
Comes with some refactoring of code and renaming of files. All modules are now named mod*.[ch].