Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | qemu-arm: Disable "io" module. | Paul Sokolovsky | 2014-05-19 |
| | |||
* | py: Implement proper separation between io.FileIO and io.TextIOWrapper. | Paul Sokolovsky | 2014-05-19 |
| | | | | | | | io.FileIO is binary I/O, ans actually optional. Default file type is io.TextIOWrapper, which provides str results. CPython3 explicitly describes io.TextIOWrapper as buffered I/O, but we don't have buffering support yet anyway. | ||
* | objexcept: Implement explicit __init__ method, useful for subclasses. | Paul Sokolovsky | 2014-05-19 |
| | |||
* | tests: Update subclass-native2.py for __new__/__init__ refactor. | Paul Sokolovsky | 2014-05-19 |
| | | | | Now case of subclassing tuple works, and list is broken, see comments. | ||
* | objtype: Separate __new__ and __init__ methods. | Paul Sokolovsky | 2014-05-19 |
| | | | | | | | | | | | Now schedule is: for native types, we call ->make_new() C-level method, which should perform actions of __new__ and __init__ (note that this is not compliant, but is efficient), but for user types, __new__ and __init__ are called as expected. Also, make sure we convert scalar attribute value to a bound-pair tight in mp_obj_class_lookup() method, which avoids converting it again and again in its callers. | ||
* | stmhal: Fix DAC documentation: need to convert float to int for buf. | Damien George | 2014-05-19 |
| | |||
* | stmhal: Fix write_timed function for DAC(2). | Damien George | 2014-05-19 |
| | | | | Addresses issue #617. | ||
* | stmhal: Make pyb.bootloader take no arguments. | Damien George | 2014-05-19 |
| | |||
* | Merge pull request #618 from swegener/jump-to-bootloader | Damien George | 2014-05-19 |
|\ | | | | | Jump to bootloader | ||
| * | stmhal: Remap system flash and adjust addresses | Sven Wegener | 2014-05-18 |
| | | | | | | | | Signed-off-by: Sven Wegener <sven.wegener@stealer.net> | ||
| * | stmhal: Activate bootloader with pyb.bootloader() | Sven Wegener | 2014-05-18 |
|/ | | | | Signed-off-by: Sven Wegener <sven.wegener@stealer.net> | ||
* | Merge pull request #615 from swegener/for-upstream | Paul Sokolovsky | 2014-05-17 |
|\ | | | | | py: Fix mp_obj_t -> mp_const_obj_t for mp_obj_int_get_checked() | ||
| * | py: Fix mp_obj_t -> mp_const_obj_t for mp_obj_int_get_checked() | Sven Wegener | 2014-05-17 |
|/ | | | | Signed-off-by: Sven Wegener <sven.wegener@stealer.net> | ||
* | py: More mp_identity usage. | Paul Sokolovsky | 2014-05-17 |
| | |||
* | py: More const usage. | Paul Sokolovsky | 2014-05-17 |
| | |||
* | objstr: startswith(): Accept optional "start" arg. | Paul Sokolovsky | 2014-05-15 |
| | |||
* | py: Implement more complete bytes comparison handling. | Paul Sokolovsky | 2014-05-15 |
| | |||
* | sequence: Fix yet another case of improper sequence comparison. | Paul Sokolovsky | 2014-05-15 |
| | | | | This time, in mp_seq_cmp_bytes(). How many more cases are still lurking? | ||
* | modos: Clean 64-bit issues. | Paul Sokolovsky | 2014-05-15 |
| | |||
* | objstringio: Implement io.BytesIO. | Paul Sokolovsky | 2014-05-15 |
| | | | | | Done in generalized manner, allowing any stream class to be specified as working with bytes. | ||
* | unix: Add "_os" module with stat(). | Paul Sokolovsky | 2014-05-14 |
| | | | | | | | stat() is bad function to use using FFI, because its ABI is largely private. To start with, Glibc .so doesn't even have "stat" symbol. Then, layout of struct stat is too implementation-dependent. So, introduce _os to deal with stat() and other similar cases. | ||
* | objstr.c: Partial implementation of .rsplit(). | Paul Sokolovsky | 2014-05-14 |
| | | | | sep=None is TODO. | ||
* | py: Improve mpz_and function. | Damien George | 2014-05-13 |
| | | | | This should now have correct (and optimal) behaviour. | ||
* | Merge pull request #600 from stinos/unix-exitcode | Damien George | 2014-05-13 |
|\ | | | | | unix: Use standard return codes for main | ||
| * | unix: Use standard return codes for main | stijn | 2014-05-11 |
| | | | | | | | | | | As in the CPython manual: "Unix programs generally use 2 for command line syntax errors and 1 for all other kind of errors" | ||
* | | Merge pull request #613 from pfalcon/pauls-copyr | Damien George | 2014-05-13 |
|\ \ | | | | | | | py, unix: Add copyright for modules I worked closely on. | ||
| * | | py, unix: Add copyright for modules I worked closely on. | Paul Sokolovsky | 2014-05-13 |
|/ / | |||
* | | tests/int-long.py: Try to expose issue with recent "&" optimization. | Paul Sokolovsky | 2014-05-13 |
| | | |||
* | | py: Fix bug in mpz_and function. | Damien George | 2014-05-12 |
| | | | | | | | | Addresses issue #610. | ||
* | | unix: Implement -O option to turn off __debug__ flag. | Damien George | 2014-05-12 |
| | | |||
* | | py: Remove emit_glue init and deinit. Needed only for debugging. | Damien George | 2014-05-12 |
| | | | | | | | | | | Debugging output for emit_glue now simplified so that the init and deinit functions are no longer needed. | ||
* | | py: Add support for __debug__ constant. | Damien George | 2014-05-12 |
| | | | | | | | | | | | | | | | | | | __debug__ now resolves to True or False. Its value needs to be set by mp_set_debug(). TODO: call mp_set_debug in unix/ port. TODO: optimise away "if False:" statements in compiler. | ||
* | | py: Rename BYTE_CODE to BYTECODE (this was missed in previous rename). | Damien George | 2014-05-12 |
| | | |||
* | | unix: Fix linker errors when time/ffi modules are disabled | stijn | 2014-05-13 |
| | | | | | | | | | | | | | | When disabling these via mpconfigport.mk or on the commandline, the correspoding build options are not set and the sources are not built so the modules should not be added to the MICROPY_EXTRA_BUILTIN_MODULES list since they are undefined. | ||
* | | modstruct: Implement count specifier for strings (e.g. "100s"). | Paul Sokolovsky | 2014-05-12 |
| | | | | | | | | Infra for counts of other types is there, need last mile to be implemented. | ||
* | | modstruct: Use MP_OBJ_FUN_ARGS_MAX instead of -1.v1.0.1 | Paul Sokolovsky | 2014-05-11 |
| | | |||
* | | objstr: Slice indexing: support bytes properly. | Paul Sokolovsky | 2014-05-11 |
| | | |||
* | | objstr: Make .split() support bytes. | Paul Sokolovsky | 2014-05-11 |
| | | |||
* | | objstr: Make .join() support bytes. | Paul Sokolovsky | 2014-05-11 |
| | | |||
* | | py: Fix __len__ special method result handling. | Paul Sokolovsky | 2014-05-11 |
| | | | | | | | | Having both MP_OBJ_NOT_SUPPORTED and MP_OBJ_NULL is arguably confusing. | ||
* | | py: Don't expect that type->getiter() always returns iterator, check for NULL. | Paul Sokolovsky | 2014-05-11 |
| | | | | | | | | This is better than forcing each getiter() implementation to raise exception. | ||
* | | showbc: Decode MAP_ADD. | Paul Sokolovsky | 2014-05-11 |
| | | |||
* | | py: Add basic implementation of hasattr() function. | Paul Sokolovsky | 2014-05-11 |
| | | |||
* | | Merge pull request #605 from stinos/travis-mingw | Damien George | 2014-05-11 |
|\ \ | | | | | | | travis: Add cross-compilation of mingw port | ||
| * | | travis: Add cross-compilation of mingw port | stijn | 2014-05-11 |
| |/ | |||
* | | Merge pull request #604 from stinos/windows-enablefeat | Damien George | 2014-05-11 |
|\ \ | | | | | | | windows: Enable frozen set and sys.exit | ||
| * | | windows: Enable frozen set and sys.exit | stijn | 2014-05-11 |
| |/ | |||
* | | py: Use mp_arg_check_num in more places. | Damien George | 2014-05-11 |
| | | | | | | | | | | | | | | | | | | Updated functions now do proper checking that n_kw==0, and are simpler because they don't have to explicitly raise an exception. Down side is that the error messages no longer include the function name, but that's acceptable. Saves order 300 text bytes on x64 and ARM. | ||
* | | py: frozenset() creates an empty frozenset. | Damien George | 2014-05-11 |
|/ | |||
* | py: Rename globally-accessible tuple functions, prefix with mp_obj_. | Damien George | 2014-05-11 |
| | | | | | Likely there are other functions that should be renamed, but this is a start. |