Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py: Add builtin help function to core, with default help msg. | Damien George | 2017-01-22 |
| | | | | | This builtin is configured using MICROPY_PY_BUILTINS_HELP, and is disabled by default. | ||
* | extmod/modutimeq: Refactor into optimized class. | Paul Sokolovsky | 2016-12-22 |
| | | | | | | | | | | import utimeq, utime # Max queue size, the queue allocated statically on creation q = utimeq.utimeq(10) q.push(utime.ticks_ms(), data1, data2) res = [0, 0, 0] # Items in res are filled up with results q.pop(res) | ||
* | stmhal/moduselect: Move to extmod/ for reuse by other ports. | Paul Sokolovsky | 2016-11-21 |
| | |||
* | py: Add "delattr" builtin, conditional on MICROPY_CPYTHON_COMPAT. | Damien George | 2016-10-24 |
| | |||
* | py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros. | Damien George | 2016-10-21 |
| | | | | | | | In order to have more fine-grained control over how builtin functions are constructed, the MP_DECLARE_CONST_FUN_OBJ macros are made more specific, with suffix of _0, _1, _2, _3, _VAR, _VAR_BETEEN or _KW. These names now match the MP_DEFINE_CONST_FUN_OBJ macros. | ||
* | py: Add basic _thread module, with ability to start a new thread. | Damien George | 2016-06-28 |
| | |||
* | py: Support to build berkeley db 1.85 and "btree" module. | Paul Sokolovsky | 2016-06-15 |
| | |||
* | py: Add uerrno module, with errno constants and dict. | Damien George | 2016-05-10 |
| | |||
* | extmod/modwebrepl: Module to handle WebREPL protocol. | Paul Sokolovsky | 2016-04-29 |
| | | | | | | | While just a websocket is enough for handling terminal part of WebREPL, handling file transfer operations requires demultiplexing and acting upon, which is encapsulated in _webrepl class provided by this module, which wraps a websocket object. | ||
* | py: Declare help, input, open builtins in core. | Paul Sokolovsky | 2016-04-15 |
| | | | | These are *defined* per-port, but why redeclare them again and again. | ||
* | extmod: Add initial framebuf module. | Damien George | 2016-04-12 |
| | |||
* | extmod/modwebsocket: Start module for WebSocket helper functions. | Paul Sokolovsky | 2016-03-24 |
| | | | | Currently, only write support is implemented (of limited buffer size). | ||
* | extmod/modurandom: Add "urandom" module. | Paul Sokolovsky | 2016-01-17 |
| | | | | | | | | Seedable and reproducible pseudo-random number generator. Implemented functions are getrandbits(n) (n <= 32) and seed(). The algorithm used is Yasmarang by Ilya Levin: http://www.literatecode.com/yasmarang | ||
* | py: Change type signature of builtin funs that take variable or kw args. | Damien George | 2016-01-11 |
| | | | | | With this patch the n_args parameter is changed type from mp_uint_t to size_t. | ||
* | extmod: Move fsusermount.c from stmhal for cross-port reuse. | Paul Sokolovsky | 2015-11-25 |
| | |||
* | extmod/modlwip: slip: Use stream protocol and be port-independent. | Paul Sokolovsky | 2015-10-27 |
| | | | | | Based on the original patch by Galen Hazelwood: https://github.com/micropython/micropython/pull/1517 . | ||
* | modussl: SSL socket wrapper module based on axTLS. | Paul Sokolovsky | 2015-10-06 |
| | |||
* | modstruct: Rename module to "ustruct", to allow full Python-level impl. | Paul Sokolovsky | 2015-05-04 |
| | |||
* | modmachine: Add new module to access hardware, starting with physical memory. | Paul Sokolovsky | 2015-05-04 |
| | | | | | Refactored from "stm" module, provides mem8, mem16, mem32 objects with array subscript syntax. | ||
* | py: Add setattr builtin. | stijn | 2015-02-14 |
| | |||
* | py: Can compile with -Wmissing-declarations and -Wmissing-prototypes. | Damien George | 2015-01-12 |
| | |||
* | py: Put all global state together in state structures. | Damien George | 2015-01-07 |
| | | | | | | This patch consolidates all global variables in py/ core into one place, in a global structure. Root pointers are all located together to make GC tracing easier and more efficient. | ||
* | py: Move to guarded includes, everywhere in py/ core. | Damien George | 2015-01-01 |
| | | | | Addresses issue #1022. | ||
* | py: Add execfile function (from Python 2); enable in stmhal port. | Damien George | 2014-12-19 |
| | | | | Adds just 60 bytes to stmhal binary. Addresses issue #362. | ||
* | py: Allow builtins to be overridden. | Damien George | 2014-12-09 |
| | | | | | | | | | | | | | | This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS) which, when enabled, allows to override all names within the builtins module. A builtins override dict is created the first time the user assigns to a name in the builtins model, and then that dict is searched first on subsequent lookups. Note that this implementation doesn't allow deleting of names. This patch also does some refactoring of builtins code, creating the modbuiltins.c file. Addresses issue #959. | ||
* | modubinascii: Add, with hexlify() implementation. | Paul Sokolovsky | 2014-11-29 |
| | |||
* | moduhashlib: Initial module skeleton. | Paul Sokolovsky | 2014-11-22 |
| | |||
* | py: Add builtin round function. | Damien George | 2014-10-31 |
| | | | | Addresses issue #934. | ||
* | py: Implement compile builtin, enabled only on unix port. | Damien George | 2014-10-25 |
| | | | | | | | This should be pretty compliant with CPython, except perhaps for some corner cases to do with globals/locals context. Addresses issue #879. | ||
* | py: mp_builtin___import__(): Add const to arg type. | Paul Sokolovsky | 2014-10-25 |
| | |||
* | extmod: Add uheapq module. | Damien George | 2014-10-22 |
| | |||
* | Implement kwargs for builtin open() and _io.FileIO | stijn | 2014-10-21 |
| | | | | | | | 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 | ||
* | modzlibd: Remove, superceded by moduzlib. | Paul Sokolovsky | 2014-10-13 |
| | |||
* | moduzlib: Integrate into the system. | Paul Sokolovsky | 2014-10-13 |
| | |||
* | modure: Initial module, using re1.5 (which is based on re1 codebase). | Paul Sokolovsky | 2014-10-11 |
| | | | | https://github.com/pfalcon/re1.5 | ||
* | py: Add native json printing using existing print framework. | Damien George | 2014-09-17 |
| | | | | | Also add start of ujson module with dumps implemented. Enabled in unix and stmhal ports. Test passes on both. | ||
* | 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-09-07 |
| | |||
* | py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h. | Damien George | 2014-08-30 |
| | | | | Part of code cleanup, working towards resolving issue #50. | ||
* | modzlibd: Decompress part of "zlib" module, based on miniz tinfl.c . | Paul Sokolovsky | 2014-08-13 |
| | |||
* | py: Implement builtin reversed() function. | Damien George | 2014-08-12 |
| | | | | | | | | 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). | ||
* | py: Make print() accept "file" argument, and actually print to stream. | Paul Sokolovsky | 2014-07-19 |
| | | | | | And not system printf(), like it was before. For this, move pfenv_printf() from stmhal port to py/. | ||
* | moductypes: Foreign data interface module, roughly based on ctype ideas. | Paul Sokolovsky | 2014-07-09 |
| | | | | | But much smaller and memory-efficient. Uses Python builtin data structures (dict, tuple, int) to describe structure layout. | ||
* | unix modsocket: Make .makefile() method more compliant. | Paul Sokolovsky | 2014-05-24 |
| | | | | | .makefile() should allow to specify which stream time to create - byte or text. | ||
* | py: Add basic implementation of hasattr() function. | Paul Sokolovsky | 2014-05-11 |
| | |||
* | modgc: Add new module for GC-related functionality. | Paul Sokolovsky | 2014-05-06 |
| | |||
* | Add license header to (almost) all files. | Damien George | 2014-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/. | ||
* | py: Make built-in 'range' a class. | Damien George | 2014-04-17 |
| | | | | Addresses issue #487. | ||
* | py: Add cmath module, for complex math. Disabled by default. | Damien George | 2014-04-17 |
| | | | | Not all functions implemented. Not enabled on pyboard. | ||
* | py: Add builtin functions bin and oct, and some tests for them. | Damien George | 2014-04-15 |
| |