aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-05-01Merge pull request #542 from dhylands/fix-pinDamien George
Fix pin initialization when a mode argument is provided
2014-05-01Merge pull request #536 from lurch/patch-1Damien George
Add flashboard target to the stmhal Makefile to run dfu-util
2014-05-01Merge pull request #544 from lurch/fix-minmaxPaul Sokolovsky
Fix the builtin min() and max() functions (and add tests).
2014-05-01objfun: More debug logging.Paul Sokolovsky
2014-05-01objgenerator: Fix check for too few args passed to gen function.Paul Sokolovsky
2014-05-01objgenerator: .print(): Output real underlying function name.Paul Sokolovsky
2014-05-01Fix the builtin min() and max() functions (and add tests).Andrew Scheller
Fixes #539
2014-05-01Fix pin initialization when a mode argument is providedDave Hylands
2014-05-01Add flashboard target to the stmhal Makefile to run dfu-utilAndrew Scheller
Which allows you to run "make -C stmhal flashboard" from the top-level directory. Also ties in nicely with my configurable BUILD directory from #506
2014-05-01py: Add tentative scheme for error messages configuration.Paul Sokolovsky
2014-05-01objfun: Add function name accessor and .print slot method.Paul Sokolovsky
2014-04-30Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-04-30stmhal, docs: Small changes to URL links; adds list of files if none given.Damien George
This documentation is now available at micropython.org/doc/
2014-04-30Merge pull request #528 from pfalcon/native-subclass1Damien George
Initial support for subclassing native types
2014-04-30stmhal: Reinstate CC3000 driver from old stm/ port.Damien George
It's not enabled by default because it doesn't fully work. It can connect to an AP, get an IP address and do a host-lookup, but not yet do send or recv on a socket.
2014-04-30stmhal: Make LED.intensity return the same value it was set to.Damien George
Also give proper error message when trying to construct a non-existent LED. Addresses issue #530.
2014-04-30objfun: Factor out function to report positional args mismatch.Paul Sokolovsky
2014-04-30py: Abstract no-return attribute for functions a bit.Paul Sokolovsky
2014-04-30py: If setjmp NLR implementation is forced, omit native versions.Paul Sokolovsky
2014-04-30nlr.h: As we treat all warnings as errors, can't use #warning.Paul Sokolovsky
And this is not good.
2014-04-30tests: Add test for calling inherited native method on subclass.Paul Sokolovsky
2014-04-30objtype: Support calling normal methods inherited from native base class.Paul Sokolovsky
Biggest part of this support is refactoring mp_obj_class_lookup() to return standard "bound member" pair (mp_obj_t[2]). Actual support of inherited native methods is 3 lines then. Some inherited features may be not supported yet (e.g. native class methods, native properties, etc., etc.). There may be opportunities for further optimization too.
2014-04-29stmhal: Oops, typo.Damien George
2014-04-29stmhal: Add documentation in comments, and script to generate HTML.Damien George
Decided to write own script to pull documentation from comments in C code. Style for writing auto generated documentation is: start line with /// and then use standard markdown to write the comment. Keywords recognised by the scraper begin with backslash. See code for examples. Running: python gendoc.py modpyb.c accel.c adc.c dac.c extint.c i2c.c led.c pin.c rng.c servo.c spi.c uart.c usrsw.c, will generate a HTML structure in gendoc-out/. gendoc.py is crude but functional. Needed something quick, and this was it.
2014-04-29tests: Add test for accessing attribute of inherited native type.Paul Sokolovsky
2014-04-29objtype: Add support for looking up non-method attrs in native base class.Paul Sokolovsky
2014-04-29tests: Add basic tests for subclassing native types and using special methods.Paul Sokolovsky
Even of these, some features do not yet work as expected.
2014-04-29objtype: Implement basic framework for subclassing native types.Paul Sokolovsky
This implements checking of base types, allocation and basic initialization, and optimized support for special method lookups. Other features are not yet supported.
2014-04-28py: Fix bug in map lookup of interned string vs non-interned.Damien George
Had choice of either interning or forcing full equality comparison, and chose latter. See comments in mp_map_lookup. Addresses issue #523.
2014-04-28py: Fix lexerunix, where not all data may be read from a file.Damien George
Addresses issue #526.
2014-04-28py: Remove silly comment about interning keywords.Damien George
Of course, keywords are turned into lexer tokens in the lexer, so will never need to be interned (unless you do something like x="def"). As it is now, the following on pyboard makes no new qstrs: import pyb pyb.info()
2014-04-28py: Clear allocated, but unused memory in containers.Paul Sokolovsky
Also, clear up freed slots in containers. As a follow up to 32bef315be8e56ad2d7f69223fe7b9606893b6ab.
2014-04-28objlist: We no longer need to assert on mem alloc results.Paul Sokolovsky
They either succeed or raise exception.
2014-04-28objlist: Use static small int constructor.Paul Sokolovsky
2014-04-27py: Add '*' qstr for 'import *'; use blank qstr for comprehension arg.Damien George
2014-04-27py: Remove unnecessary LOAD_CONST_ID bytecode.Damien George
It's the same as LOAD_CONST_STR.
2014-04-27py: Eliminate 'op' variable in VM dispatch loop.Damien George
Remembering the last op is rarely needed, and when it is, can simply use *save_ip.
2014-04-27py: Save some ROM by shortening compiler error messages.Damien George
Messages are still explanatory, while taking a little less ROM.
2014-04-27py: Change the way function arguments are compiled.Damien George
New way uses slightly less ROM and RAM, should be slightly faster, and, most importantly, allows to catch the error "non-keyword arg following keyword arg". Addresses issue #466.
2014-04-27py: Implement keyword-only args.Damien George
Implements 'def f(*, a)' and 'def f(*a, b)', but not default keyword-only args, eg 'def f(*, a=1)'. Partially addresses issue #524.
2014-04-26Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-04-26py, gc: Only zero out the extra bytes at the end of the heap chunk.Damien George
This is a small optimisation to zero out only the additional bytes that the caller did not ask for.
2014-04-26py: "read" & "write" are so common that make them core.Paul Sokolovsky
Few other strings move to core, but make depend on "io" module.
2014-04-26objstringio: Compile only if MICROPY_ENABLE_MOD_IO defined.Paul Sokolovsky
2014-04-26modio: Implement io.StringIO class.Paul Sokolovsky
2014-04-26Simplify names for argcheck.c / arg parsing.Damien George
2014-04-26Add ARRAY_SIZE macro, and use it where possible.Damien George
2014-04-26Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-04-26bare-arm: Disable more stuff to reduce binary size.Damien George
2014-04-26py: Make collections module configurable, enabled by default.Damien George