summaryrefslogtreecommitdiffstatshomepage
path: root/py/objtuple.c
Commit message (Collapse)AuthorAge
* Revamp qstrs: they now include length and hash.Damien George2014-01-21
| | | | | Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
* Make VM stack grow upwards, and so no reversed args arrays.Damien George2014-01-18
| | | | | | | | | | | | | | | Change state layout in VM so the stack starts at state[0] and grows upwards. Locals are at the top end of the state and number downwards. This cleans up a lot of the interface connecting the VM to C: now all functions that take an array of Micro Python objects are in order (ie no longer in reverse). Also clean up C API with keyword arguments (call_n and call_n_kw replaced with single call method that takes keyword arguments). And now make_new takes keyword arguments. emitnative.c has not yet been changed to comply with the new order of stack layout.
* type->print(): Distinguish str() and repr() variety by passing extra param.Paul Sokolovsky2014-01-15
|
* Merge pull request #165 from chipaca/builtinsDamien George2014-01-14
|\ | | | | added zip()
| * added zip()John R. Lenton2014-01-13
| |
* | Add objtuple.h to allow embedding of tuples inside other objects.Paul Sokolovsky2014-01-14
|/ | | | This is useful because tuple is closest analog of C static array.
* py: Implement base class lookup, issubclass, isinstance.Damien George2014-01-09
|
* A bit of stylistic cleanup (chose the wrong side during conflict resolution).John R. Lenton2014-01-07
|
* Merge remote-tracking branch 'upstream/master' into listsort. Lots of ↵John R. Lenton2014-01-07
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | conflict fun. Conflicts: py/obj.h py/objbool.c py/objboundmeth.c py/objcell.c py/objclass.c py/objclosure.c py/objcomplex.c py/objdict.c py/objexcept.c py/objfun.c py/objgenerator.c py/objinstance.c py/objmodule.c py/objrange.c py/objset.c py/objslice.c
| * Merge branch 'cplusplus' of https://github.com/ian-v/micropython into ↵Damien George2014-01-07
| |\ | | | | | | | | | | | | | | | | | | ian-v-cplusplus Conflicts: py/objcomplex.c
| | * Revert MP_BOOL, etc. and use <stdbool.h> insteadian-v2014-01-06
| | |
| | * Co-exist with C++ (issue #85)ian-v2014-01-06
| |/
* / This implements a better (more python-conformant) list.sort.John R. Lenton2014-01-07
|/ | | | | | | | It's not really about that, though; it's about me figuring out a sane way forward for keyword-argument functions (and function metadata). But it's useful as is, and shouldn't break any existing code, so here you have it; I'm going to park it in my mind for a bit while sorting out the rest of the dict branch.
* Convert many object types structs to use C99 tagged initializer syntax.Paul Sokolovsky2014-01-05
|
* Convert Python types to proper Python type hierarchy.Damien George2014-01-04
| | | | Now much more inline with how CPython does types.
* Change object representation from 1 big union to individual structs.Damien2013-12-21
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).