summaryrefslogtreecommitdiffstatshomepage
path: root/py/builtintables.c
Commit message (Collapse)AuthorAge
* modgc: Add new module for GC-related functionality.Paul Sokolovsky2014-05-06
|
* Add license header to (almost) all files.Damien George2014-05-03
| | | | | | | Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
* Add ARRAY_SIZE macro, and use it where possible.Damien George2014-04-26
|
* py: Make collections module configurable, enabled by default.Damien George2014-04-26
|
* py: Make built-in 'range' a class.Damien George2014-04-17
| | | | Addresses issue #487.
* py: Add cmath module, for complex math. Disabled by default.Damien George2014-04-17
| | | | Not all functions implemented. Not enabled on pyboard.
* py: Add builtin functions bin and oct, and some tests for them.Damien George2014-04-15
|
* py: Add hex builtin function.Damien George2014-04-15
| | | | A one-liner, added especially for @pfalcon :)
* py: Add property object, with basic functionality.Damien George2014-04-13
| | | | Enabled by MICROPY_ENABLE_PROPERTY.
* py: Add more #if's for configurable MOD_SYS.Damien George2014-04-13
|
* Merge pull request #476 from pfalcon/static-sysDamien George2014-04-13
|\ | | | | Convert sys module to static allocation
| * py, unix: Convert sys module to static representation.Paul Sokolovsky2014-04-13
| |
* | py: Rename collections module to _collections.Paul Sokolovsky2014-04-13
|/ | | | | 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.
* py: Start implementing "struct" module.Paul Sokolovsky2014-04-10
| | | | | | | | | 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.
* py: Make bytearray a proper type.Paul Sokolovsky2014-04-08
|
* 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].