aboutsummaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2014-01-03Rename default config file to mpconfig.h, and port's to mpconfigport.h.Paul Sokolovsky
mpconfig.h will automatically pull mpconfigport.h.
2014-01-03Make it possible to turn off collecting memory stats (MICROPY_MEM_STATS).Paul Sokolovsky
2014-01-03Add new alloc metric: peak_bytes_allocated.Paul Sokolovsky
This is just max value of current_bytes_allocated seen.
2014-01-03Add new alloc metric: current_bytes_allocated.Paul Sokolovsky
Unlike total_bytes_allocated, this tracks m_free()'s too.
2014-01-03m_realloc: Account only allocation size difference in total_bytes_allocated.Paul Sokolovsky
2014-01-03Merge pull request #43 from chipaca/masterDamien George
Implement list addition.
2014-01-03Change mp_compile so that it returns a function object for the module.Damien George
2014-01-03Add note about implementing inplace operators.Damien George
2014-01-03Basic implementation of import.Damien George
import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function.
2014-01-03Changed to use memcpy.John R. Lenton
2014-01-03Add a bit of whitespace.John R. Lenton
2014-01-03untabifiedJohn R. Lenton
2014-01-03Add list addition (fixes: #39)John R. Lenton
2014-01-03Change old use of module creation to new proper use.Damien George
2014-01-02Add module object, to be used eventually for import.Damien George
2014-01-02py: Fix generator where state array was incorrectly indexed.Damien George
Generator objects now allocate the object and the state in one malloc. This improvement fixes Issue #38.
2014-01-02py: __MACH__ also uses MAP_ANON.Damien George
2014-01-02py: change negative array indices with array - 1.Damien George
2014-01-02py: Add more bytecodes to showbc.c.Damien George
2014-01-02Add quick impl for MP_BC_LOAD_CONST_BYTES which just creates qstr so far.Paul Sokolovsky
This is based on the fact that qstr so far behaves more like byte string than like Unicode string (for example, "012"[0] returns 48 (int)).
2014-01-02py: remove depedence on strcat and stpcpy.Damien George
This fixes Issue #29, and means the core is no longer dependent on string functions, except strlen.
2014-01-02py: Add framework for built-in "type()" function.Damien George
2014-01-01On OpenBSD MAP_ANONYMOUS is called MAP_ANON.Edd Barrett
2014-01-01py: change declaration of mp_map_t in obj.h (for issue #24).Damien George
2014-01-01py: add int() and float() built-ins, partially implemented.Damien George
2013-12-30Merge pull request #12 from pfalcon/minor-fixesDamien George
Minor fixes
2013-12-30py: make closures work.Damien George
2013-12-30Typo fix in comment.Paul Sokolovsky
2013-12-30Put unicode functions in unicode.c, and tidy their names.Damien George
2013-12-30Make unix-cpy cross platform; remove dependency of asmx64 on mpconfig.Damien George
2013-12-30Merge branch 'cross-plat' of https://github.com/pfalcon/micropython into ↵Damien George
pfalcon-cross-plat
2013-12-30Make "unix" target be crossplatform and support x86, x64, ARM hosts.Paul Sokolovsky
2013-12-29py: add dict length function, and fix rt_store_set.Damien
2013-12-29Change memory allocation API to require size for free and realloc.Damien
2013-12-29py: implement POP_BLOCK in VM.Damien
2013-12-29Handle return value of read() call.Paul Sokolovsky
2013-12-29Add unix-cpy, used to test Micro Python byte code against CPython.Damien
2013-12-29py: implement some basic exception matching.Damien
2013-12-29Add code in VM to handle nested exceptions correctly.Damien
2013-12-29Parse upper-case hex numbers correctly.Damien
2013-12-21py: simplify __next__ method for generators.Damien
2013-12-21Change object representation from 1 big union to individual structs.Damien
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
2013-12-20Fix a few compiler warnings.Damien
2013-12-17py: add more Python built-in functions.Damien
2013-12-17py: split runtime into map, obj, builtin.Damien
2013-12-12py: remove further unnecessary emit_verbatim code.Damien
2013-12-12py: fix bug with doc string not recognised after first newline of file.Damien
2013-12-12py: reduce use of emit_verbatim calls to minimum.Damien
2013-12-11py: work towards working closures.Damien
2013-12-10py: emit correct id for closed over variables.Damien