- Apr 30, 2014
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
And this is not good.
-
- Apr 29, 2014
-
-
Damien George authored
-
Damien George authored
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.
-
- Apr 28, 2014
-
-
Damien George authored
Had choice of either interning or forcing full equality comparison, and chose latter. See comments in mp_map_lookup. Addresses issue #523.
-
Damien George authored
Addresses issue #526.
-
Damien George authored
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()
-
- Apr 27, 2014
-
-
Paul Sokolovsky authored
Also, clear up freed slots in containers. As a follow up to 32bef315.
-
Paul Sokolovsky authored
They either succeed or raise exception.
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
It's the same as LOAD_CONST_STR.
-
Damien George authored
Remembering the last op is rarely needed, and when it is, can simply use *save_ip.
-
Damien George authored
Messages are still explanatory, while taking a little less ROM.
-
Damien George authored
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.
-
Damien George authored
Implements 'def f(*, a)' and 'def f(*a, b)', but not default keyword-only args, eg 'def f(*, a=1)'. Partially addresses issue #524.
-
- Apr 26, 2014
-
-
Damien George authored
-
Damien George authored
This is a small optimisation to zero out only the additional bytes that the caller did not ask for.
-
Paul Sokolovsky authored
Few other strings move to core, but make depend on "io" module.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Share code with .strip(). TODO: optimize .rstrip().
-
Paul Sokolovsky authored
This is CPython-compliant (except that CPython doesn't support buffer protocol for str).
-
Paul Sokolovsky authored
This in particular fixes writing str vs bytes.
-
- Apr 25, 2014
-
-
Damien George authored
Also add a few STATIC's to some compile functions that should have them. Addresses issue #521.
-
Damien George authored
-
Damien George authored
Also add some more debugging output to gc_dump_alloc_table(). Now that newly allocated heap is always zero'd, maybe we just make this a policy for the uPy API to keep it simple (ie any new implementation of memory allocation must zero all allocations). This follows the D language philosophy. Before this patch, a previously used memory block which had pointers in it may still retain those pointers if the new user of that block does not actually use the entire block. Eg, if I want 5 blocks worth of heap, I actually get 8 (round up to nearest 4). Then I never use the last 3, so they keep their old values, which may be pointers pointing to the heap, hence preventing GC. In rare (or maybe not that rare) cases, this leads to long, unintentional "linked lists" within the GC'd heap, filling it up completely. It's pretty rare, because you have to reuse exactly that memory which is part of this "linked list", and reuse it in just the right way. This should fix issue #522, and might have something to do with issue #510.
-
Paul Sokolovsky authored
-
Damien George authored
-
- Apr 24, 2014
-
-
Damien George authored
Qemu
-
Damien George authored
-
Damien George authored
-
Damien George authored
objexcept: Don't store args tuple within exception object.
-