summaryrefslogtreecommitdiffstatshomepage
path: root/py
Commit message (Collapse)AuthorAge
* Oops: add objint.cDamien George2014-01-05
|
* Merge pull request #73 from mikaeleiman/apple-clang-fixesDamien George2014-01-04
|\ | | | | Apple clang fixes
| * OSX: fixes to make nlrx64.S with Apple's clang (switched to Apple-specific ↵Mikael Eiman2014-01-04
| | | | | | | | define instead of __llvm__)
| * OSX: fixes to make nlrx64.S with Apple's clang (forgot a few places)Mikael Eiman2014-01-04
| |
| * OSX: fixes to make nlrx64.S with Apple's clangMikael Eiman2014-01-04
| |
* | Convert Python types to proper Python type hierarchy.Damien George2014-01-04
|/ | | | Now much more inline with how CPython does types.
* Add ellipsis object.Damien George2014-01-04
|
* Merge pull request #70 from chipaca/list_countDamien George2014-01-04
|\ | | | | Implements list.count. Fixes isue #55.
| * Merge remote-tracking branch 'upstream/master' into list_countJohn R. Lenton2014-01-04
| |\
| * \ Merge remote-tracking branch 'upstream/master' into list_countJohn R. Lenton2014-01-04
| |\ \
| * \ \ Merge remote-tracking branch 'upstream/master' into list_countJohn R. Lenton2014-01-04
| |\ \ \
| * | | | Implemented list.countJohn R. Lenton2014-01-03
| | | | |
* | | | | Split qstr into pools, and put initial pool in ROM.Damien George2014-01-04
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | | | Improve configurability for native x64/thumb emitter.Damien George2014-01-04
| |_|/ |/| | | | | | | | | | | | | | 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.
* | | Merge pull request #64 from pfalcon/str-slice-range-checkDamien George2014-01-04
|\ \ \ | | | | | | | | str slice: Trim slice indexes to be in range.
| * | | str slice: Trim slice indexes to be in range.Paul Sokolovsky2014-01-04
| | |/ | |/|
* | | Merge pull request #60 from chipaca/list_copyDamien George2014-01-04
|\ \ \ | |/ / |/| / | |/ Implemented list.copy. Fixes issue #54.
| * Implemented list.copy. Fixes issue #54.John R. Lenton2014-01-03
| |
* | Fix int -> machine_int_t; add print to slice test.Damien George2014-01-04
| |
* | Merge pull request #59 from pfalcon/sliceDamien George2014-01-03
|\ \ | | | | | | Implement basic slice object and string slicing
| * | str: Throw TypeError for invalid index type and clean up comments.Paul Sokolovsky2014-01-04
| | |
| * | slice: Allow building with MICROPY_ENABLE_SLICE=0.Paul Sokolovsky2014-01-04
| | |
| * | str: Handle non-positive slice indexes.Paul Sokolovsky2014-01-04
| | |
| * | slice: Implement special handling of omitted start/stop indexes.Paul Sokolovsky2014-01-04
| | |
| * | Enable slice support in config.Paul Sokolovsky2014-01-04
| | |
| * | str: Initial implementation of string slicing.Paul Sokolovsky2014-01-04
| | | | | | | | | | | | Only step=1 and non-negative indexes are supported so far.
| * | Implement BUILD_SLICE opcode (2-arg version).Paul Sokolovsky2014-01-04
| | |
| * | Add basic implementation of slice object.Paul Sokolovsky2014-01-04
| | | | | | | | | | | | | | | So far, only start and stop integer indexes are supported. Step is not supported, as well as objects of arbitrary types.
* | | Merge pull request #58 from chipaca/list_clearDamien George2014-01-03
|\ \ \ | |/ / |/| / | |/ Added list.clear. Fixes issue #53.
| * Added list.clear. Fixes issue #53.John R. Lenton2014-01-03
| |
* | Merge pull request #52 from chipaca/masterDamien George2014-01-03
|\| | | | | Tweaks to list.pop.
| * Merge remote-tracking branch 'upstream/master'John R. Lenton2014-01-03
| |\
| * | Worked on list.pop:John R. Lenton2014-01-03
| | | | | | | | | | | | | | | | | | * 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.
* | | Move INT_FMT, etc. declaration into global mpconfig.h .Paul Sokolovsky2014-01-04
| |/ |/| | | | | This in particular makes it available for stm port.
* | Rename default config file to mpconfig.h, and port's to mpconfigport.h.Paul Sokolovsky2014-01-03
| | | | | | | | mpconfig.h will automatically pull mpconfigport.h.
* | Make it possible to turn off collecting memory stats (MICROPY_MEM_STATS).Paul Sokolovsky2014-01-03
| |
* | Add new alloc metric: peak_bytes_allocated.Paul Sokolovsky2014-01-03
| | | | | | | | This is just max value of current_bytes_allocated seen.
* | Add new alloc metric: current_bytes_allocated.Paul Sokolovsky2014-01-03
| | | | | | | | Unlike total_bytes_allocated, this tracks m_free()'s too.
* | m_realloc: Account only allocation size difference in total_bytes_allocated.Paul Sokolovsky2014-01-03
| |
* | Merge pull request #43 from chipaca/masterDamien George2014-01-03
|\| | | | | Implement list addition.
| * Changed to use memcpy.John R. Lenton2014-01-03
| |
| * Add a bit of whitespace.John R. Lenton2014-01-03
| |
| * untabifiedJohn R. Lenton2014-01-03
| |
| * Add list addition (fixes: #39)John R. Lenton2014-01-03
| |
* | Change mp_compile so that it returns a function object for the module.Damien George2014-01-03
| |
* | Add note about implementing inplace operators.Damien George2014-01-03
| |
* | Basic implementation of import.Damien George2014-01-03
|/ | | | | | import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function.
* Change old use of module creation to new proper use.Damien George2014-01-03
|
* Add module object, to be used eventually for import.Damien George2014-01-02
|
* py: Fix generator where state array was incorrectly indexed.Damien George2014-01-02
| | | | | Generator objects now allocate the object and the state in one malloc. This improvement fixes Issue #38.