summaryrefslogtreecommitdiffstatshomepage
path: root/py
Commit message (Collapse)AuthorAge
* Merge pull request #165 from chipaca/builtinsDamien George2014-01-14
|\ | | | | added zip()
| * Merge remote-tracking branch 'upstream/master' into builtinsJohn R. Lenton2014-01-13
| |\ | | | | | | | | | | | | | | | | | | Conflicts: py/builtin.c py/builtin.h py/runtime.c
| * | Made sorted() raise an exception instead of aborting when given no ↵John R. Lenton2014-01-13
| | | | | | | | | | | | arguments; moved around some things in objfun.c as a consequence
| * | Cleaned up sorted() as per Damien's suggestions.John R. Lenton2014-01-13
| | |
| * | sortedJohn R. Lenton2014-01-13
| | |
| * | added zip()John R. Lenton2014-01-13
| | |
* | | Implement "is" and "is not" operators.Paul Sokolovsky2014-01-15
| | | | | | | | | | | | So far, don't work for strings as expected.
* | | 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.
* | mp_obj_equal(): Compare small and long ints properly.Paul Sokolovsky2014-01-13
| | | | | | | | By dispatching to long int methods.
* | Move mp_obj_int_t definition to objint.h, to reuse in long int impls.Paul Sokolovsky2014-01-13
| |
* | Consolidate rt_make_function_[0123] to rt_make_function_n.Damien George2014-01-13
| |
* | Merge pull request #168 from dhylands/add-strstrDamien George2014-01-13
|\ \ | | | | | | Added public domain implementations of strchr and strstr.
| * | Added public domain implementations of strchr and strstr.Dave Hylands2014-01-12
| |/
* | Cleanup built-ins, and fix some compiler warnings/errors.Damien George2014-01-13
| |
* | Initialize is_kw for dynamically allocated mp_obj_fun_native_t ojects.Dave Hylands2014-01-13
|/ | | | This should fix issue #171
* Merge pull request #162 from chipaca/str_findDamien George2014-01-12
|\ | | | | Implement a basic str.find; fixes #67
| * Implement a basic str.find; fixes #67John R. Lenton2014-01-12
| |
* | Merge pull request #160 from pfalcon/elaborate-intDamien George2014-01-12
|\ \ | | | | | | Elaborate small-int/long-int
| * | Add framework to support alternative implementations of long int Python type.Paul Sokolovsky2014-01-12
| | |
| * | Parse long Python ints properly.Paul Sokolovsky2014-01-12
| | | | | | | | | | | | | | | | | | Long int is something which doesn't fit into SMALL_INT partion of machine_int_t. But it's also something which doesn't fit into machine_int_t in the first place.
| * | Add proper checks for fits-in-small-int. Make it reusable.Paul Sokolovsky2014-01-12
| | | | | | | | | | | | | | | | | | | | | We likely should make mp_obj_new_int() inline, and rely on its encapsulated check rather than inline checks everywhere explicitly. Also, parser for big small int values is still broken.
| * | Add WORD_MSBIT_HIGH define - machine_int_t with the highest bit set.Paul Sokolovsky2014-01-12
| | |
| * | Move BITS_PER_BYTE, BITS_PER_WORD to mpconfig.h for reuse.Paul Sokolovsky2014-01-12
| |/
* | oops, nasty off-by-one in set_copyJohn R. Lenton2014-01-12
| |
* | Implemented set binary ops.John R. Lenton2014-01-12
| |
* | Implemented set.updateJohn R. Lenton2014-01-12
| |
* | Implemented set.removeJohn R. Lenton2014-01-12
| |
* | Implemented set.isdisjointJohn R. Lenton2014-01-12
| |
* | Implemented set.intersection and set.intersection_updateJohn R. Lenton2014-01-12
| |
* | Implemented set.difference and set.difference_updateJohn R. Lenton2014-01-12
| |
* | Implemented set.discardJohn R. Lenton2014-01-12
| |
* | Implemented set.copyJohn R. Lenton2014-01-12
| |
* | Implemented set.clearJohn R. Lenton2014-01-12
| |
* | Implemented set.addJohn R. Lenton2014-01-12
| |
* | make sets iterableJohn R. Lenton2014-01-12
|/
* py: Improve memory management for parser; add lexer error for bad line cont.Damien George2014-01-12
|
* Merge pull request #148 from pfalcon/list-cmpDamien George2014-01-12
|\ | | | | Implement type virtual equality method support and implement comparisons for lists
| * list: Implement comparison operators.Paul Sokolovsky2014-01-12
| |
| * mp_obj_equal(): For non-trivial types, call out to type's special method.Paul Sokolovsky2014-01-12
| |
* | py: AssertionError is loaded from global, to match CPython.Damien George2014-01-12
| |
* | Merge pull request #146 from pfalcon/assert-excDamien George2014-01-12
|\ \ | |/ |/| Add AssertionError.
| * Add AssertionError.Paul Sokolovsky2014-01-12
| |
* | rt_binary_op(): Don't fall thru in case small_int op result doesn't fit back.Paul Sokolovsky2014-01-12
| | | | | | | | | | Currently it would report "operation not supported" which is confusing. Overall, this is thinko leading to undefined behavior.
* | list: Add extend() methods and += operator.Paul Sokolovsky2014-01-12
|/
* py: Implement staticmethod and classmethod (internally).Damien George2014-01-11
| | | | Still need to make built-ins by these names, and write tests.
* py: Fix bug where == and != not handled for small_ints.Damien George2014-01-11
|
* py: Fix emitcpy and emitnative's binary_op.Damien George2014-01-11
|
* Merge branch 'master' of github.com:dpgeorge/micropythonDamien George2014-01-11
|\
| * unified the bopsJohn R. Lenton2014-01-11
| |
* | py: Make arg to MP_BC_RAISE_VARARGS a byte.Damien George2014-01-11
|/