aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-05-21unix: Fix casting issue, int to small int object.Damien George
2014-05-21Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-05-21Tidy up some configuration options.Damien George
MP_ALLOC_* -> MICROPY_ALLOC_* MICROPY_PATH_MAX -> MICROPY_ALLOC_PATH_MAX MICROPY_ENABLE_REPL_HELPERS -> MICROPY_HELPER_REPL MICROPY_ENABLE_LEXER_UNIX -> MICROPY_HELPER_LEXER_UNIX MICROPY_EXTRA_* -> MICROPY_PORT_* See issue #35.
2014-05-21objtype: super: Fall back to "object" lookup as last resort.Paul Sokolovsky
Also, define object.__init__() (semantically empty, purely CPython compat measure). Addresses #520.
2014-05-21objtype: super: Add stop condition for looking up in base types.Paul Sokolovsky
2014-05-21stm: Remove long-obsolete stm/ port.Damien George
2014-05-21unix, Mac support: Generate order.def via Makefile.Damien George
2014-05-21Merge pull request #607 from Anton-2/osx-clangDamien George
Allow compilation of unix port under clang on OS X
2014-05-21py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL.Damien George
See issue #608 for justification.
2014-05-21stmhal: Stop USB before entering DFU by software.Damien George
2014-05-20Merge pull request #621 from stinos/migw-w64-fixPaul Sokolovsky
windows: Fix compilation with mingw-w64 so it uses correct printf implem...
2014-05-20modstruct: struct_calcsize: Fix case of uninitialized var.Paul Sokolovsky
2014-05-20windows: Fix compilation with mingw-w64 so it uses correct printf ↵stijn
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.
2014-05-19qemu-arm: Disable "io" module.Paul Sokolovsky
2014-05-19py: Implement proper separation between io.FileIO and io.TextIOWrapper.Paul Sokolovsky
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.
2014-05-19objexcept: Implement explicit __init__ method, useful for subclasses.Paul Sokolovsky
2014-05-19tests: Update subclass-native2.py for __new__/__init__ refactor.Paul Sokolovsky
Now case of subclassing tuple works, and list is broken, see comments.
2014-05-19objtype: Separate __new__ and __init__ methods.Paul Sokolovsky
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.
2014-05-19stmhal: Fix DAC documentation: need to convert float to int for buf.Damien George
2014-05-19stmhal: Fix write_timed function for DAC(2).Damien George
Addresses issue #617.
2014-05-19stmhal: Make pyb.bootloader take no arguments.Damien George
2014-05-19Merge pull request #618 from swegener/jump-to-bootloaderDamien George
Jump to bootloader
2014-05-18stmhal: Remap system flash and adjust addressesSven Wegener
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-05-18stmhal: Activate bootloader with pyb.bootloader()Sven Wegener
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-05-17Merge pull request #615 from swegener/for-upstreamPaul Sokolovsky
py: Fix mp_obj_t -> mp_const_obj_t for mp_obj_int_get_checked()
2014-05-17py: Fix mp_obj_t -> mp_const_obj_t for mp_obj_int_get_checked()Sven Wegener
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-05-17py: More mp_identity usage.Paul Sokolovsky
2014-05-17py: More const usage.Paul Sokolovsky
2014-05-15objstr: startswith(): Accept optional "start" arg.Paul Sokolovsky
2014-05-15py: Implement more complete bytes comparison handling.Paul Sokolovsky
2014-05-15sequence: Fix yet another case of improper sequence comparison.Paul Sokolovsky
This time, in mp_seq_cmp_bytes(). How many more cases are still lurking?
2014-05-15modos: Clean 64-bit issues.Paul Sokolovsky
2014-05-15objstringio: Implement io.BytesIO.Paul Sokolovsky
Done in generalized manner, allowing any stream class to be specified as working with bytes.
2014-05-14unix: Add "_os" module with stat().Paul Sokolovsky
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.
2014-05-14objstr.c: Partial implementation of .rsplit().Paul Sokolovsky
sep=None is TODO.
2014-05-13py: Improve mpz_and function.Damien George
This should now have correct (and optimal) behaviour.
2014-05-13Merge pull request #600 from stinos/unix-exitcodeDamien George
unix: Use standard return codes for main
2014-05-13Merge pull request #613 from pfalcon/pauls-copyrDamien George
py, unix: Add copyright for modules I worked closely on.
2014-05-13py, unix: Add copyright for modules I worked closely on.Paul Sokolovsky
2014-05-13tests/int-long.py: Try to expose issue with recent "&" optimization.Paul Sokolovsky
2014-05-12py: Fix bug in mpz_and function.Damien George
Addresses issue #610.
2014-05-12unix: Implement -O option to turn off __debug__ flag.Damien George
2014-05-12py: Remove emit_glue init and deinit. Needed only for debugging.Damien George
Debugging output for emit_glue now simplified so that the init and deinit functions are no longer needed.
2014-05-12py: Add support for __debug__ constant.Damien George
__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.
2014-05-12py: Rename BYTE_CODE to BYTECODE (this was missed in previous rename).Damien George
2014-05-13unix: Fix linker errors when time/ffi modules are disabledstijn
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.
2014-05-12modstruct: Implement count specifier for strings (e.g. "100s").Paul Sokolovsky
Infra for counts of other types is there, need last mile to be implemented.
2014-05-12Fix some unused variables, and silence a clang warning about initialization ↵Antonin ENFRUN
override in vmentrytable.h
2014-05-12unix: Add asm statements needed to read registers with clang. Code generated ↵Antonin ENFRUN
by gcc 4.9.0 is unchanged (same statements, different order). Both are inefficient, saving unmodified registers on the stack.
2014-05-12tests: create result file for test/basics/memoryerror.py .Antonin ENFRUN
On Mac OS "python3 test/basics/memoryerror.py" never runs out of memory, the process is frozen by the os before.