aboutsummaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2014-01-15Implement repr.Damien George
2014-01-15Convert parse errors to exceptions.Damien George
Parser no longer prints an error, but instead returns an exception ID and message.
2014-01-15add more tests and remove debug codexyb
2014-01-15int() test passedxyb
2014-01-15added filter()John R. Lenton
2014-01-15Added mapJohn R. Lenton
2014-01-15Implement str() and repr() builtin functions.Paul Sokolovsky
2014-01-15type->print(): Distinguish str() and repr() variety by passing extra param.Paul Sokolovsky
2014-01-14Merge remote-tracking branch 'upstream/master' into builtinsJohn R. Lenton
2014-01-14added enumerate()John R. Lenton
2014-01-14Merge pull request #173 from pfalcon/file-readallDamien George
Generic implementation if stream readall() method, immediately reused in unix io.FileIO implementation
2014-01-14Merge pull request #161 from pfalcon/exc-more-pythonicDamien George
Move towards Python-compliant interface of exceptions
2014-01-14Merge pull request #142 from chipaca/containmentDamien George
Implemented support for `in` and `not in` operators.
2014-01-14Tidy up.Damien George
2014-01-14Merge pull request #165 from chipaca/builtinsDamien George
added zip()
2014-01-15Implement "is" and "is not" operators.Paul Sokolovsky
So far, don't work for strings as expected.
2014-01-15Refactor exception objects to have better impl of Python-side interface.Paul Sokolovsky
This implements internal args tuple of arguments, while still keeping object useful for reporting C-side errors. Further elaboration is needed.
2014-01-14Add objtuple.h to allow embedding of tuples inside other objects.Paul Sokolovsky
This is useful because tuple is closest analog of C static array.
2014-01-14support int(str, basbase)xyb
2014-01-14Implemented int(str) in UNIXxyb
2014-01-13Merge remote-tracking branch 'upstream/master' into builtinsJohn R. Lenton
Conflicts: py/builtin.c py/builtin.h py/runtime.c
2014-01-13Merge remote-tracking branch 'upstream/master' into containmentJohn R. Lenton
2014-01-13Add generic impl of stream .readall() method. Use one for unix io.FileIO.Paul Sokolovsky
2014-01-13Add "buffer management" and "shrink" API calls to vstr.Paul Sokolovsky
vstr is initially intended to deal with arbitrary-length strings. By providing a bit lower-level API calls, it will be also useful to deal with arbitrary-length I/O buffers (the difference from strings is that buffers are filled from "outside", via I/O). Another issue, especially aggravated by I/O buffer use, is alloc size vs actual size length. If allocated 1Mb for buffer, but actually read 1 byte, we don't want to keep rest of 1Mb be locked by this I/O result, but rather return it to heap ASAP ("shrink" buffer before passing it to qstr_from_str_take()).
2014-01-13mp_obj_equal(): Compare small and long ints properly.Paul Sokolovsky
By dispatching to long int methods.
2014-01-13Move mp_obj_int_t definition to objint.h, to reuse in long int impls.Paul Sokolovsky
2014-01-13Made sorted() raise an exception instead of aborting when given no ↵John R. Lenton
arguments; moved around some things in objfun.c as a consequence
2014-01-13Cleaned up sorted() as per Damien's suggestions.John R. Lenton
2014-01-13Consolidate rt_make_function_[0123] to rt_make_function_n.Damien George
2014-01-13Merge pull request #168 from dhylands/add-strstrDamien George
Added public domain implementations of strchr and strstr.
2014-01-13Cleanup built-ins, and fix some compiler warnings/errors.Damien George
2014-01-13Initialize is_kw for dynamically allocated mp_obj_fun_native_t ojects.Dave Hylands
This should fix issue #171
2014-01-12Added public domain implementations of strchr and strstr.Dave Hylands
2014-01-13sortedJohn R. Lenton
2014-01-13added zip()John R. Lenton
2014-01-13Fixed the merge so it worked and compiled and stuffJohn R. Lenton
2014-01-13Merge remote-tracking branch 'upstream/master' into containmentJohn R. Lenton
2014-01-12Merge pull request #162 from chipaca/str_findDamien George
Implement a basic str.find; fixes #67
2014-01-12Merge pull request #160 from pfalcon/elaborate-intDamien George
Elaborate small-int/long-int
2014-01-12oops, nasty off-by-one in set_copyJohn R. Lenton
2014-01-12Implemented set binary ops.John R. Lenton
2014-01-12Implement a basic str.find; fixes #67John R. Lenton
2014-01-12Add framework to support alternative implementations of long int Python type.Paul Sokolovsky
2014-01-12Parse long Python ints properly.Paul Sokolovsky
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.
2014-01-12Add proper checks for fits-in-small-int. Make it reusable.Paul Sokolovsky
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.
2014-01-12Add WORD_MSBIT_HIGH define - machine_int_t with the highest bit set.Paul Sokolovsky
2014-01-12Move BITS_PER_BYTE, BITS_PER_WORD to mpconfig.h for reuse.Paul Sokolovsky
2014-01-12Implemented set.updateJohn R. Lenton
2014-01-12Implemented set.removeJohn R. Lenton
2014-01-12Implemented set.isdisjointJohn R. Lenton