Paul Sokolovsky
|
c3e72a8cc8
|
mp_obj_is_callable(): Only object types can be callable.
Fixes segfault on callable("string").
|
2014-01-23 03:37:21 +02:00 |
|
Paul Sokolovsky
|
1eacefe5bc
|
Implement simplest case of str.startswith().
|
2014-01-23 02:47:10 +02:00 |
|
Paul Sokolovsky
|
0b7184dcb8
|
Implement octal and hex escapes in strings.
|
2014-01-22 22:48:25 +02:00 |
|
Damien George
|
600ae734cf
|
py: Implement break and continue byte codes, and add tests.
Also fixes a bug in the for-in-range optimiser.
I hope to remove break and continue byte codes in the future and just
use jump (if possible).
|
2014-01-21 23:48:04 +00:00 |
|
Paul Sokolovsky
|
d30e019459
|
Add bytearray basic tests.
|
2014-01-21 23:59:50 +02:00 |
|
Paul Sokolovsky
|
4c316552c1
|
Implement str.split(None).
Note that splitting by explicit string is not implemented so far.
|
2014-01-21 05:01:21 +02:00 |
|
Paul Sokolovsky
|
7380a83780
|
str: Implement proper string (instead of byte string) indexing.
Also, support negative indexes.
|
2014-01-21 02:25:59 +02:00 |
|
Paul Sokolovsky
|
545591a696
|
Implement string multiplication.
|
2014-01-21 00:39:12 +02:00 |
|
Paul Sokolovsky
|
8c3858b016
|
Move tests in basic/tests/ up one level preparating to multiple test dirs.
|
2014-01-19 18:41:55 +02:00 |
|
Damien George
|
ebde0b8a09
|
Tiny optimisation in objlist.c; a new test for inheritance.
|
2014-01-19 00:47:40 +00:00 |
|
Damien George
|
aefe79880f
|
Merge branch 'master' of github.com:micropython/micropython
|
2014-01-18 17:54:35 +00:00 |
|
Damien George
|
f49ba1bd9c
|
Improve method lookup in mp_obj_class_lookup.
Now searches both locals_dict and methods. Partly addresses Issue #145.
|
2014-01-18 17:52:41 +00:00 |
|
Paul Sokolovsky
|
b31b5e0b5c
|
Add testcase for subclassing builtin type and calling native method (broken).
|
2014-01-18 19:12:17 +02:00 |
|
Damien George
|
1d6fc94c16
|
Implement framework for class-defined built-in operators.
Now working for class-defined methods: __getitem__, __setitem__,
__add__, __sub__. Easy to add others.
|
2014-01-18 15:31:13 +00:00 |
|
Paul Sokolovsky
|
10744dd816
|
Add empty (false) value testing for strings, tuples, lists, dicts.
|
2014-01-16 23:54:17 +02:00 |
|
Paul Sokolovsky
|
f2b796e7c7
|
str.format: Don't assume that '}' immediately follows '{', skip insides.
That at least makes stuff like "{:x}".format(1) to produce not completely
broken output.
|
2014-01-16 03:46:01 +02:00 |
|
Damien George
|
5573f9f150
|
Merge branch 'str2int' of github.com:xyb/micropython into xyb-str2int
Conflicts:
py/objint.c
unix-cpy/Makefile
unix/Makefile
|
2014-01-15 22:58:39 +00:00 |
|
Damien George
|
4899ff9470
|
Merge branch 'str-repr' of github.com:pfalcon/micropython into pfalcon-str-repr
Conflicts:
tests/basics/tests/exception1.py
|
2014-01-15 22:39:03 +00:00 |
|
Damien George
|
7a9d0c4540
|
Merge branch 'builtins' of github.com:chipaca/micropython into chipaca-builtins
Added some checks for number of arguments.
Conflicts:
py/mpqstrraw.h
|
2014-01-15 22:27:16 +00:00 |
|
Damien George
|
d02c6d8962
|
Implement eval.
|
2014-01-15 22:14:03 +00:00 |
|
Damien George
|
e2fb2baaa4
|
Implement repr.
|
2014-01-15 21:40:48 +00:00 |
|
xyb
|
3e4ed25138
|
add more tests and remove debug code
|
2014-01-15 20:37:17 +08:00 |
|
xyb
|
3270fb4be6
|
int() test passed
|
2014-01-15 19:58:11 +08:00 |
|
John R. Lenton
|
fca456bc3c
|
added filter()
|
2014-01-15 01:37:08 +00:00 |
|
John R. Lenton
|
39b174e00a
|
Added map
|
2014-01-15 01:10:09 +00:00 |
|