Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | 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: Add stream reading of n unicode chars; unicode support by default. | Damien George | 2014-07-19 |
| | | | | | | | | | | | | | With unicode enabled, this patch allows reading a fixed number of characters from text-mode streams; eg file.read(5) will read 5 unicode chars, which can made of more than 5 bytes. For an ASCII stream (ie no chars > 127) it only needs to do 1 read. If there are lots of non-ASCII chars in a stream, then it needs multiple reads of the underlying object. Adds a new test for this case. Enables unicode support by default on unix and stmhal ports. | ||
* | py: Remove unnecessary argument in bytearray print. | Damien George | 2014-07-17 |
| | |||
* | formatfloat.c: Typo fix in comment. | Paul Sokolovsky | 2014-07-17 |
| | |||
* | py, inline asm: Change "and" op name to "and_" to avoid keyword clash. | Damien George | 2014-07-17 |
| | | | | Addresses issue #753. | ||
* | stream: Factor out mp_stream_write() method to write a memstring to stream. | Paul Sokolovsky | 2014-07-13 |
| | |||
* | py: Add generic helper to align a pointer. | Paul Sokolovsky | 2014-07-12 |
| | |||
* | emitbc: Fix structure field alignment issue. | Paul Sokolovsky | 2014-07-12 |
| | | | | | | | dummy_data field is accessed as uint value (e.g. in emit_write_bytecode_byte_ptr), but is not aligned as such, which causes bus errors or incorrect behavior on any arch requiring strictly aligned data (ARM pre-v7, MIPS, etc, etc). | ||
* | moductypes: Add symbolic constants to specify bitfield position/length. | Paul Sokolovsky | 2014-07-11 |
| | |||
* | 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. | ||
* | binary: Factor out mp_binary_set_int(). | Paul Sokolovsky | 2014-07-05 |
| | |||
* | py: Automatically ake __new__ a staticmethod. | Damien George | 2014-07-05 |
| | | | | Addresses issue #622. | ||
* | 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. | ||
* | parser: Convert (u)int to mp_(u)int_t. | Damien George | 2014-07-03 |
| | |||
* | lexer: Convert type (u)int to mp_(u)int_t. | Damien George | 2014-07-03 |
| | |||
* | Rename machine_(u)int_t to mp_(u)int_t. | Damien George | 2014-07-03 |
| | | | | See discussion in issue #50. | ||
* | Merge branch 'teensy-new' of github.com:dhylands/micropython into ↵ | Damien George | 2014-07-02 |
|\ | | | | | | | | | | | | | | | | | | | | | | | dhylands-teensy-new Conflicts: stmhal/pin_named_pins.c stmhal/readline.c Renamed HAL_H to MICROPY_HAL_H. Made stmhal/mphal.h which intends to define the generic Micro Python HAL, which in stmhal sits above the ST HAL. | ||
| * | Updated teensy to build. | Dave Hylands | 2014-06-15 |
| | | | | | | | | Refactored some stmhal files which are shared with teensy. | ||
* | | py, objexcept: Only check for locked gc if gc is enabled. | Damien George | 2014-07-01 |
| | | |||
* | | Merge branch 'preserve-except' of github.com:dhylands/micropython into ↵ | Damien George | 2014-07-01 |
|\ \ | | | | | | | | | | dhylands-preserve-except | ||
| * | | Try not to cause a MemoryError when raising an exception during nterrupt ↵ | Dave Hylands | 2014-06-30 |
| | | | | | | | | | | | | | | | | | | handling. Step 1 fixes #732 | ||
* | | | stackctrl: Add "mp_" prefix. | Paul Sokolovsky | 2014-07-01 |
| | | | |||
* | | | Merge pull request #710 from iabdalkader/assert | Damien George | 2014-06-30 |
|\ \ \ | | | | | | | | | Fix assert_func warning/error | ||
| * | | | Fix asser_func warning/error | mux | 2014-06-21 |
| | | | | | | | | | | | | | | | | | | | | * Add while(1) to assert_func to avoid func returns warning * Define a weak attr in mpconfig.h | ||
* | | | | py: Improvements to native emitter. | Damien George | 2014-06-30 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Native emitter can now compile try/except blocks using nlr_push/nlr_pop. It probably only works for 1 level of exception handling. It doesn't work on Thumb (only x64). Native emitter can also handle some additional op codes. With this patch, 198 tests now pass using "-X emit=native" option to micropython. | ||
* | | | | windows: Sync mpconfigport.h with the unix' version | stijn | 2014-06-29 |
| | | | | | | | | | | | | | | | | | | | | | | | | - rearrange/add definitions that were not there so it's easier to compare both - use MICROPY_PY_SYS_PLATFORM in main.c since it's available anyway - define EWOULDBLOCK, it is missing from ingw32 | ||
* | | | | py: Make unichar_charlen() accept/return machine_uint_t. | Paul Sokolovsky | 2014-06-28 |
| | | | | |||
* | | | | py: Add missing #endif. | Damien George | 2014-06-28 |
| | | | | |||
* | | | | py: Small comments, name changes, use of machine_int_t. | Damien George | 2014-06-28 |
| | | | | |||
* | | | | Merge branch 'master' into unicode | Damien George | 2014-06-28 |
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | Conflicts: py/mpconfig.h | ||
| * | | | py: Add protection against printing too nested or recursive data structures. | Paul Sokolovsky | 2014-06-28 |
| | | | | | | | | | | | | | | | | With a test which cannot be automatically validated so far. | ||
| * | | | py: Allow to disable array module and bytearray type. | Paul Sokolovsky | 2014-06-27 |
| | | | | | | | | | | | | | | | | | | | | array.array and bytearray share big deal of code, so to get real savings, both need to be disabled. | ||
| * | | | py: Move stack_ctrl_init() to mp_init(). | Paul Sokolovsky | 2014-06-27 |
| | | | | | | | | | | | | | | | | | | | | | | | | As stack checking is enabled by default, ports which don't call stack_ctrl_init() are broken now (report RuntimeError on startup). Save them trouble and just init stack control framework in interpreter init. | ||
* | | | | streams: Reading by char count from unicode text streams is not implemented. | Paul Sokolovsky | 2014-06-27 |
| | | | | |||
* | | | | misc: Add count_lead_ones() function, useful for UTF-8 handling. | Paul Sokolovsky | 2014-06-27 |
| | | | | |||
* | | | | objstrunicode: Refactor str_index_to_ptr() following objstr. | Paul Sokolovsky | 2014-06-27 |
| | | | | |||
* | | | | objstr: 64-bit issues. | Paul Sokolovsky | 2014-06-27 |
| | | | | |||
* | | | | objstrunicode: Signedness issues. | Paul Sokolovsky | 2014-06-27 |
| | | | | |||
* | | | | unicode: Make get_char()/next_char()/charlen() be 8-bit compatible. | Paul Sokolovsky | 2014-06-27 |
| | | | | | | | | | | | | | | | | Based on config define. | ||
* | | | | objstr: find(), rfind(), index(): Make return value be unicode-aware. | Paul Sokolovsky | 2014-06-27 |
| | | | | |||
* | | | | unicode: Add utf8_ptr_to_index(). | Paul Sokolovsky | 2014-06-27 |
| | | | | | | | | | | | | | | | | | | | | Useful when we have pointer to char inside string, but need to return char index. (E.g. str.find()). | ||
* | | | | py: Add dedicated unicode header. | Paul Sokolovsky | 2014-06-27 |
| | | | | |||
* | | | | objstrunicode: Implement iterator. | Paul Sokolovsky | 2014-06-27 |
| | | | | |||
* | | | | objstrunicode: Re-add buffer protocol back for now, required for io.StringIO. | Paul Sokolovsky | 2014-06-27 |
| | | | | |||
* | | | | objstrunicode: Revamp len() handling for unicode, and optimize bool(). | Paul Sokolovsky | 2014-06-27 |
| | | | | |||
* | | | | objstrunicode: Get rid of bytes checking, it's separate type. | Paul Sokolovsky | 2014-06-27 |
| | | | | |||
* | | | | py: Make MICROPY_PY_BUILTINS_STR_UNICODE=1 buildable. | Paul Sokolovsky | 2014-06-27 |
| | | | | |||
* | | | | py: Prune unneeded code from objstrunicode, reuse code in objstr. | Paul Sokolovsky | 2014-06-27 |
| | | | | |||
* | | | | vstr: Restore bytestr compatibility. | Paul Sokolovsky | 2014-06-27 |
| | | | | |||
* | | | | builtin: Restore bytestr compatibility. | Paul Sokolovsky | 2014-06-27 |
| | | | |