summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* objtype: super: Fall back to "object" lookup as last resort.Paul Sokolovsky2014-05-21
| | | | | Also, define object.__init__() (semantically empty, purely CPython compat measure). Addresses #520.
* objtype: super: Add stop condition for looking up in base types.Paul Sokolovsky2014-05-21
|
* stm: Remove long-obsolete stm/ port.Damien George2014-05-21
|
* unix, Mac support: Generate order.def via Makefile.Damien George2014-05-21
|
* Merge pull request #607 from Anton-2/osx-clangDamien George2014-05-21
|\ | | | | Allow compilation of unix port under clang on OS X
| * Fix some unused variables, and silence a clang warning about initialization ↵Antonin ENFRUN2014-05-12
| | | | | | | | override in vmentrytable.h
| * unix: Add asm statements needed to read registers with clang. Code generated ↵Antonin ENFRUN2014-05-12
| | | | | | | | | | | | by gcc 4.9.0 is unchanged (same statements, different order). Both are inefficient, saving unmodified registers on the stack.
| * tests: create result file for test/basics/memoryerror.py .Antonin ENFRUN2014-05-12
| | | | | | | | On Mac OS "python3 test/basics/memoryerror.py" never runs out of memory, the process is frozen by the os before.
| * unix: Create __bss_start and _end symbols for Mach-O targets.Antonin ENFRUN2014-05-12
| | | | | | | | It's a hack, but can't find a cleaner way to do it.
* | py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL.Damien George2014-05-21
| | | | | | | | See issue #608 for justification.
* | stmhal: Stop USB before entering DFU by software.Damien George2014-05-21
| |
* | Merge pull request #621 from stinos/migw-w64-fixPaul Sokolovsky2014-05-20
|\ \ | | | | | | windows: Fix compilation with mingw-w64 so it uses correct printf implem...
| * | windows: Fix compilation with mingw-w64 so it uses correct printf ↵stijn2014-05-20
| | | | | | | | | | | | | | | | | | | | | | | | implementations Without this flag, mingw-w64 uses the MS implementations of snpintf and the likes. This is not really a problem since they work with the the fixes provided for msvc, but due to the way mingw-w64's stdio.h is structured we cannot get it to use the fixes.
* | | modstruct: struct_calcsize: Fix case of uninitialized var.Paul Sokolovsky2014-05-20
|/ /
* | qemu-arm: Disable "io" module.Paul Sokolovsky2014-05-19
| |
* | py: Implement proper separation between io.FileIO and io.TextIOWrapper.Paul Sokolovsky2014-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 Sokolovsky2014-05-19
| |
* | tests: Update subclass-native2.py for __new__/__init__ refactor.Paul Sokolovsky2014-05-19
| | | | | | | | Now case of subclassing tuple works, and list is broken, see comments.
* | objtype: Separate __new__ and __init__ methods.Paul Sokolovsky2014-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 George2014-05-19
| |
* | stmhal: Fix write_timed function for DAC(2).Damien George2014-05-19
| | | | | | | | Addresses issue #617.
* | stmhal: Make pyb.bootloader take no arguments.Damien George2014-05-19
| |
* | Merge pull request #618 from swegener/jump-to-bootloaderDamien George2014-05-19
|\ \ | | | | | | Jump to bootloader
| * | stmhal: Remap system flash and adjust addressesSven Wegener2014-05-18
| | | | | | | | | | | | Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
| * | stmhal: Activate bootloader with pyb.bootloader()Sven Wegener2014-05-18
|/ / | | | | | | Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
* | Merge pull request #615 from swegener/for-upstreamPaul Sokolovsky2014-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 Wegener2014-05-17
|/ / | | | | | | Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
* | py: More mp_identity usage.Paul Sokolovsky2014-05-17
| |
* | py: More const usage.Paul Sokolovsky2014-05-17
| |
* | objstr: startswith(): Accept optional "start" arg.Paul Sokolovsky2014-05-15
| |
* | py: Implement more complete bytes comparison handling.Paul Sokolovsky2014-05-15
| |
* | sequence: Fix yet another case of improper sequence comparison.Paul Sokolovsky2014-05-15
| | | | | | | | This time, in mp_seq_cmp_bytes(). How many more cases are still lurking?
* | modos: Clean 64-bit issues.Paul Sokolovsky2014-05-15
| |
* | objstringio: Implement io.BytesIO.Paul Sokolovsky2014-05-15
| | | | | | | | | | Done in generalized manner, allowing any stream class to be specified as working with bytes.
* | unix: Add "_os" module with stat().Paul Sokolovsky2014-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 Sokolovsky2014-05-14
| | | | | | | | sep=None is TODO.
* | py: Improve mpz_and function.Damien George2014-05-13
| | | | | | | | This should now have correct (and optimal) behaviour.
* | Merge pull request #600 from stinos/unix-exitcodeDamien George2014-05-13
|\ \ | | | | | | unix: Use standard return codes for main
| * | unix: Use standard return codes for mainstijn2014-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-copyrDamien George2014-05-13
|\ \ \ | | | | | | | | py, unix: Add copyright for modules I worked closely on.
| * | | py, unix: Add copyright for modules I worked closely on.Paul Sokolovsky2014-05-13
|/ / /
* | | tests/int-long.py: Try to expose issue with recent "&" optimization.Paul Sokolovsky2014-05-13
| | |
* | | py: Fix bug in mpz_and function.Damien George2014-05-12
| | | | | | | | | | | | Addresses issue #610.
* | | unix: Implement -O option to turn off __debug__ flag.Damien George2014-05-12
| | |
* | | py: Remove emit_glue init and deinit. Needed only for debugging.Damien George2014-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 George2014-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 George2014-05-12
| | |
* | | unix: Fix linker errors when time/ffi modules are disabledstijn2014-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 Sokolovsky2014-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.1Paul Sokolovsky2014-05-11
| |