aboutsummaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2014-01-05Oops: add objint.cDamien George
2014-01-04Merge pull request #73 from mikaeleiman/apple-clang-fixesDamien George
Apple clang fixes
2014-01-04Convert Python types to proper Python type hierarchy.Damien George
Now much more inline with how CPython does types.
2014-01-04OSX: fixes to make nlrx64.S with Apple's clang (switched to Apple-specific ↵Mikael Eiman
define instead of __llvm__)
2014-01-04OSX: fixes to make nlrx64.S with Apple's clang (forgot a few places)Mikael Eiman
2014-01-04OSX: fixes to make nlrx64.S with Apple's clangMikael Eiman
2014-01-04Add ellipsis object.Damien George
2014-01-04Merge pull request #70 from chipaca/list_countDamien George
Implements list.count. Fixes isue #55.
2014-01-04Split qstr into pools, and put initial pool in ROM.Damien George
Qstr's are now split into a linked-list of qstr pools. This has 2 benefits: the first pool can be in ROM (huge benefit, since we no longer use RAM for the core qstrs), and subsequent pools use m_new for the next pool instead of m_renew (thus avoiding a huge single table for all the qstrs). Still would be better to use a hash table, but this scheme takes us part of the way (eventually convert the pools to hash tables). Also fixed bug with import. Also improved the way the module code is referenced (not magic number 1 anymore).
2014-01-04Merge remote-tracking branch 'upstream/master' into list_countJohn R. Lenton
2014-01-04Improve configurability for native x64/thumb emitter.Damien George
With MICROPY_EMIT_X64 and MICROPY_EMIT_THUMB disabled, the respective emitters and assemblers will not be included in the code. This can significantly reduce binary size for unix version.
2014-01-04Merge remote-tracking branch 'upstream/master' into list_countJohn R. Lenton
2014-01-04Merge pull request #64 from pfalcon/str-slice-range-checkDamien George
str slice: Trim slice indexes to be in range.
2014-01-04Merge pull request #60 from chipaca/list_copyDamien George
Implemented list.copy. Fixes issue #54.
2014-01-04str slice: Trim slice indexes to be in range.Paul Sokolovsky
2014-01-04Merge remote-tracking branch 'upstream/master' into list_countJohn R. Lenton
2014-01-04Fix int -> machine_int_t; add print to slice test.Damien George
2014-01-03Merge pull request #59 from pfalcon/sliceDamien George
Implement basic slice object and string slicing
2014-01-03Merge pull request #58 from chipaca/list_clearDamien George
Added list.clear. Fixes issue #53.
2014-01-04str: Throw TypeError for invalid index type and clean up comments.Paul Sokolovsky
2014-01-04slice: Allow building with MICROPY_ENABLE_SLICE=0.Paul Sokolovsky
2014-01-04str: Handle non-positive slice indexes.Paul Sokolovsky
2014-01-04slice: Implement special handling of omitted start/stop indexes.Paul Sokolovsky
2014-01-04Enable slice support in config.Paul Sokolovsky
2014-01-04str: Initial implementation of string slicing.Paul Sokolovsky
Only step=1 and non-negative indexes are supported so far.
2014-01-04Implement BUILD_SLICE opcode (2-arg version).Paul Sokolovsky
2014-01-04Add basic implementation of slice object.Paul Sokolovsky
So far, only start and stop integer indexes are supported. Step is not supported, as well as objects of arbitrary types.
2014-01-03Merge pull request #52 from chipaca/masterDamien George
Tweaks to list.pop.
2014-01-03Implemented list.countJohn R. Lenton
2014-01-04Move INT_FMT, etc. declaration into global mpconfig.h .Paul Sokolovsky
This in particular makes it available for stm port.
2014-01-03Implemented list.copy. Fixes issue #54.John R. Lenton
2014-01-03Added list.clear. Fixes issue #53.John R. Lenton
2014-01-03Merge remote-tracking branch 'upstream/master'John R. Lenton
2014-01-03Worked on list.pop:John R. Lenton
* Fixes issue #51 * Adds a specific error message for when you try to pop an empty list. * Releases some memory if the list has shurnk a lot.
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.