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
|
7280f79088
|
run-tests: Allow to run tests selectively via command line.
|
2014-01-21 05:02:58 +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
|
decd597273
|
unix io.FileIO: Add iteration support.
A file cannot be iterated concurrently, so we make io.FileIO its own
iterator.
|
2014-01-20 18:42:08 +02:00 |
|
Damien George
|
7d08935458
|
Rename unix binary to 'micropython'.
|
2014-01-20 00:02:39 +00:00 |
|
Paul Sokolovsky
|
fe2690da0a
|
unix: Implement sys.argv.
|
2014-01-20 01:00:28 +02:00 |
|
Paul Sokolovsky
|
db796ef84d
|
Add README for tests/.
|
2014-01-19 18:51:59 +02:00 |
|
Paul Sokolovsky
|
9954b4b99d
|
Add directory for I/O tests with basic test for file methods.
|
2014-01-19 18:46:21 +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 |
|