Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-10-21 | Implement kwargs for builtin open() and _io.FileIO | stijn | |
This makes open() and _io.FileIO() more CPython compliant. The mode kwarg is fully iplemented. The encoding kwarg is allowed but not implemented; mainly to allow the tests to specify encoding for CPython, see #874 | |||
2014-10-13 | modzlibd: Remove, superceded by moduzlib. | Paul Sokolovsky | |
2014-10-13 | moduzlib: Integrate into the system. | Paul Sokolovsky | |
2014-10-11 | modure: Initial module, using re1.5 (which is based on re1 codebase). | Paul Sokolovsky | |
https://github.com/pfalcon/re1.5 | |||
2014-09-17 | py: Add native json printing using existing print framework. | Damien George | |
Also add start of ujson module with dumps implemented. Enabled in unix and stmhal ports. Test passes on both. | |||
2014-09-07 | Remove skeletal modselect from extmod and just put it in stmhal. | Damien George | |
2014-09-07 | stmhal: Implement generic select.select and select.poll. | Damien George | |
2014-08-30 | py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h. | Damien George | |
Part of code cleanup, working towards resolving issue #50. | |||
2014-08-13 | modzlibd: Decompress part of "zlib" module, based on miniz tinfl.c . | Paul Sokolovsky | |
2014-08-12 | py: Implement builtin reversed() function. | Damien George | |
reversed function now implemented, and works for tuple, list, str, bytes and user objects with __len__ and __getitem__. Renamed mp_builtin_len to mp_obj_len to make it publically available (eg for reversed). | |||
2014-07-19 | py: Make print() accept "file" argument, and actually print to stream. | Paul Sokolovsky | |
And not system printf(), like it was before. For this, move pfenv_printf() from stmhal port to py/. | |||
2014-07-09 | moductypes: Foreign data interface module, roughly based on ctype ideas. | Paul Sokolovsky | |
But much smaller and memory-efficient. Uses Python builtin data structures (dict, tuple, int) to describe structure layout. | |||
2014-05-24 | unix modsocket: Make .makefile() method more compliant. | Paul Sokolovsky | |
.makefile() should allow to specify which stream time to create - byte or text. | |||
2014-05-11 | py: Add basic implementation of hasattr() function. | Paul Sokolovsky | |
2014-05-06 | modgc: Add new module for GC-related functionality. | Paul Sokolovsky | |
2014-05-03 | Add license header to (almost) all files. | Damien George | |
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/. | |||
2014-04-17 | py: Make built-in 'range' a class. | Damien George | |
Addresses issue #487. | |||
2014-04-17 | py: Add cmath module, for complex math. Disabled by default. | Damien George | |
Not all functions implemented. Not enabled on pyboard. | |||
2014-04-15 | py: Add builtin functions bin and oct, and some tests for them. | Damien George | |
2014-04-15 | py: Add hex builtin function. | Damien George | |
A one-liner, added especially for @pfalcon :) | |||
2014-04-13 | objdict: Add __delitem__. | Paul Sokolovsky | |
2014-04-13 | objdict: Add __setitem__. | Paul Sokolovsky | |
2014-04-13 | Merge pull request #476 from pfalcon/static-sys | Damien George | |
Convert sys module to static allocation | |||
2014-04-13 | py: Factor out impl of special methods for builtin types into opmethods.c | Paul Sokolovsky | |
2014-04-13 | py, unix: Convert sys module to static representation. | Paul Sokolovsky | |
2014-04-10 | py: 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-06 | py: Implement globals() and locals() builtins. | Paul Sokolovsky | |
2014-04-05 | py: Put default namespace into module __main__. | Paul Sokolovsky | |
That's how CPython has it, in particular, "import __main__" should work. | |||
2014-04-03 | py: 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-27 | py: Implement getattr() builtin. | Paul Sokolovsky | |
2014-03-25 | Proper 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]. | |||
2014-03-24 | py: Remove obsolete declarations; make mp_obj_get_array consistent. | Damien George | |
2014-03-08 | Implement ROMable modules. Add math module. | Damien George | |
mp_module_obj_t can now be put in ROM. Configuration of float type is now similar to longint: can now choose none, float or double as the implementation. math module has basic math functions. For STM port, these are not yet implemented (they are just stub functions). | |||
2014-03-03 | Add basic collections.namedtuple implementation. | Paul Sokolovsky | |
2014-02-04 | Expose __import__() function. | Paul Sokolovsky | |
2014-02-03 | py: Implement builtin exec. | Damien George | |
2014-02-02 | py: Add very basic implementation of dir() builtin. | Damien George | |
Only works on modules and class instances. | |||
2014-02-01 | Implement and add tests for the id() builtin function. | xbe | |
2014-01-20 | Add dummy bytes() constructor. | Paul Sokolovsky | |
Currently, MicroPython strings are mix between CPython byte and unicode strings. So, conversion is null so far. This dummy implementation is intended for compatibility with CPython (so, same code can run on both). | |||
2014-01-20 | py: Put micropython module init code in builtinmp.c. | Damien George | |
2014-01-20 | Expose memory stats functions via "micropython" module. | Paul Sokolovsky | |
These are micropython.mem_total(), .mem_current(), .mem_peak(). These are 3 individual functions with simple scalar return value to make sure that calls to these functions themselves have minimal (hopefully zero) impact on memory allocation. | |||
2014-01-15 | Merge branch 'str-repr' of github.com:pfalcon/micropython into pfalcon-str-repr | Damien George | |
Conflicts: tests/basics/tests/exception1.py | |||
2014-01-15 | Implement eval. | Damien George | |
2014-01-15 | Implement repr. | Damien George | |
2014-01-15 | Implement str() and repr() builtin functions. | Paul Sokolovsky | |
2014-01-13 | Merge remote-tracking branch 'upstream/master' into builtins | John R. Lenton | |
Conflicts: py/builtin.c py/builtin.h py/runtime.c | |||
2014-01-13 | Cleanup built-ins, and fix some compiler warnings/errors. | Damien George | |
2014-01-13 | sorted | John R. Lenton | |
2014-01-09 | py: Implement base class lookup, issubclass, isinstance. | Damien George | |
2014-01-08 | py: Improve __build_class__. | Damien George | |