Paul Sokolovsky
|
39763c6cb0
|
lexerstr: Free mp_lexer_str_buf_t structure itself.
|
2014-01-24 02:57:50 +02:00 |
|
Paul Sokolovsky
|
fd31358505
|
mp_compile(): Properly free module_scope and all nested scopes.
|
2014-01-23 23:16:18 +02:00 |
|
Paul Sokolovsky
|
624ed5d563
|
mp_lexer_free(): Free lex->indent_level array.
|
2014-01-23 23:16:18 +02:00 |
|
Damien George
|
1e708fed18
|
py: Implement bool unary op; tidy up unary op dispatch.
|
2014-01-23 18:27:51 +00:00 |
|
Damien George
|
b051e7d167
|
py: Simpler implementation of mp_obj_callable.
|
2014-01-23 18:13:53 +00: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 |
|
Damien George
|
b979122dfb
|
py: Use C99 way of variable macro arguments.
Addresses Issue #207.
|
2014-01-23 00:34:21 +00:00 |
|
Damien George
|
00208ce194
|
py: Change macro var args in parser to be C99 compliant.
|
2014-01-23 00:00:53 +00:00 |
|
Damien George
|
0d028743aa
|
py: Initialise loaded_module map in rt_init.
STM port crashes without this re-init. There should not be any state in
the core py/ code that relies on pre-initialised data.
|
2014-01-22 23:59:20 +00:00 |
|
Damien George
|
f64086f80f
|
Fix 1 warning and 1 bug.
|
2014-01-22 23:18:50 +00:00 |
|
Paul Sokolovsky
|
0b7184dcb8
|
Implement octal and hex escapes in strings.
|
2014-01-22 22:48:25 +02:00 |
|
Paul Sokolovsky
|
0914371faf
|
file.readline(): Use mp_obj_str_get_data() and fix off-by-one error on EOF.
|
2014-01-22 19:17:58 +02:00 |
|
Damien George
|
5fa93b6755
|
Second stage of qstr revamp: uPy str object can be qstr or not.
|
2014-01-22 14:35:10 +00:00 |
|
Damien George
|
e6a4ab4be1
|
py: Remove implicit conversion of float to int in mp_obj_get_int().
Addresses Issue #199.
|
2014-01-22 00:21:47 +00:00 |
|
Damien George
|
2843b8e3a7
|
Merge branch 'master' of github.com:micropython/micropython
|
2014-01-21 23:49:44 +00: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 |
|
Dave Hylands
|
7a996b1f65
|
Fix malformed generated file when using python 2.7
|
2014-01-21 15:28:27 -08:00 |
|
Paul Sokolovsky
|
09ce05996a
|
array: Implement iterator.
|
2014-01-21 23:59:50 +02:00 |
|
Paul Sokolovsky
|
33996685df
|
Add len() support for arrays.
|
2014-01-21 23:59:50 +02:00 |
|
Damien George
|
12eaccacda
|
Merge branch 'master' of github.com:micropython/micropython
Conflicts:
py/objstr.c
py/py.mk
py/stream.c
unix/main.c
unix/socket.c
|
2014-01-21 21:54:15 +00:00 |
|
Damien George
|
55baff4c9b
|
Revamp qstrs: they now include length and hash.
Can now have null bytes in strings. Can define ROM qstrs per port using
qstrdefsport.h
|
2014-01-21 21:40:13 +00: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 |
|