Paul Sokolovsky
|
14d28be344
|
gen.send(): Throw StopIteration. Also, explicitly shutdown finished gen.
Otherwise, some generator statements still may be spuriously executed on
subsequent calls to next()/send().
|
2014-01-27 01:07:58 +02:00 |
|
Paul Sokolovsky
|
bf38e2a03a
|
Implement send() method for generators.
|
2014-01-26 20:56:08 +02:00 |
|
Damien George
|
7c9c667633
|
py: Implement iterator support for object that has __getitem__.
Addresses Issue #203.
|
2014-01-25 00:17:36 +00:00 |
|
Paul Sokolovsky
|
91fb1c9b13
|
Add basic implementation of bytes type, piggybacking on str.
This reuses as much str implementation as possible, from this we
can make them more separate as needed.
|
2014-01-24 22:56:26 +02:00 |
|
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
|
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 |
|