Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py: Move definition of mp_sys_exit to core. | Damien George | 2014-09-15 |
| | | | | | | | | sys.exit always raises SystemExit so doesn't need a special implementation for each port. If C exit() is really needed, use the standard os._exit function. Also initialise mp_sys_path and mp_sys_argv in teensy port. | ||
* | doc: Fix up a few docs in sys module. | Damien George | 2014-08-10 |
| | |||
* | doc: Document gc, sys, math, cmath. | Damien George | 2014-08-10 |
| | |||
* | 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/. | ||
* | py: Implement sys.maxsize, standard way to check platform "bitness". | Paul Sokolovsky | 2014-07-03 |
| | | | | | Implementing it as a static constant is a bit peculiar and require cooperation from long int implementation. | ||
* | py: Include mpconfig.h before all other includes. | Paul Sokolovsky | 2014-06-21 |
| | | | | | | It defines types used by all other headers. Fixes #691. | ||
* | Prefix ARRAY_SIZE with micropython prefix MP_ | Emmanuel Blot | 2014-06-19 |
| | |||
* | modsys: Add optional support for sys.platform. | Paul Sokolovsky | 2014-06-07 |
| | | | | | Ports which wants to have it, should define MICROPY_PY_SYS_PLATFORM to a string value they need. | ||
* | Rename configuration variables controling Python features. | Damien George | 2014-05-24 |
| | | | | Now of the form MICROPY_PY_*. See issue #35. | ||
* | py: Rename MICROPY_SYS_EXIT to MICROPY_MOD_SYS_EXIT. | Damien George | 2014-05-11 |
| | | | | For consistency with MICROPY_MOD_SYS_STDFILES, etc. | ||
* | modsys: Enable sys.exit() per port after all. | Paul Sokolovsky | 2014-05-10 |
| | |||
* | modsys, unix: Add sys.exit(), should be implemented by a port. | Paul Sokolovsky | 2014-05-10 |
| | |||
* | 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/. | ||
* | Add ARRAY_SIZE macro, and use it where possible. | Damien George | 2014-04-26 |
| | |||
* | modsys: Implement sys.version. | Paul Sokolovsky | 2014-04-14 |
| | | | | | | | | The logic appears to be that (at least beginning of) sys.versions is the version of reference Python language implemented, not version of particular implementation. Also, bump set versions at 3.4.0, based on @dpgeorge preference. | ||
* | modsys: Implement sys.byteorder. | Paul Sokolovsky | 2014-04-13 |
| | |||
* | modsys: Implement basic sys.version_info. | Paul Sokolovsky | 2014-04-13 |
| | |||
* | stmhal: Update for static mod sys. | Paul Sokolovsky | 2014-04-13 |
| | |||
* | py, unix: Convert sys module to static representation. | Paul Sokolovsky | 2014-04-13 |