Damien George
|
b829b5caec
|
Implement mp_parse_node_free; print properly repr(string).
|
2014-01-25 13:51:19 +00: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 |
|
Damien George
|
1e708fed18
|
py: Implement bool unary op; tidy up unary op dispatch.
|
2014-01-23 18:27:51 +00:00 |
|
Paul Sokolovsky
|
1eacefe5bc
|
Implement simplest case of str.startswith().
|
2014-01-23 02:47:10 +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
|
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 |
|
Paul Sokolovsky
|
8965a5eb1e
|
objstr: More support for MP_OBJ_QSTR.
|
2014-01-20 23:34:17 +02:00 |
|
Paul Sokolovsky
|
bb33cc66fb
|
Properly print MP_OBJ_QSTR objects.
|
2014-01-20 01:00:28 +02:00 |
|
Damien George
|
a11ceca807
|
Change int to uint for n_args in function with variable arguments.
|
2014-01-19 16:02:09 +00: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
|
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 |
|
Paul Sokolovsky
|
76d982ef34
|
type->print(): Distinguish str() and repr() variety by passing extra param.
|
2014-01-15 02:15:38 +02:00 |
|
John R. Lenton
|
f5a0a7d2b3
|
Merge remote-tracking branch 'upstream/master' into containment
|
2014-01-13 23:09:04 +00:00 |
|
Damien George
|
f62d33aa1d
|
Consolidate rt_make_function_[0123] to rt_make_function_n.
|
2014-01-13 19:50:05 +00:00 |
|
Damien George
|
f88a72a88e
|
Merge pull request #168 from dhylands/add-strstr
Added public domain implementations of strchr and strstr.
|
2014-01-13 11:43:57 -08:00 |
|
Damien George
|
2300537c79
|
Cleanup built-ins, and fix some compiler warnings/errors.
|
2014-01-13 19:39:01 +00:00 |
|
Dave Hylands
|
c8effff937
|
Added public domain implementations of strchr and strstr.
|
2014-01-12 22:34:58 -08:00 |
|
John R. Lenton
|
13e64f0660
|
Merge remote-tracking branch 'upstream/master' into containment
|
2014-01-13 00:41:12 +00:00 |
|
John R. Lenton
|
e820491f7a
|
Implement a basic str.find; fixes #67
|
2014-01-12 21:53:52 +00:00 |
|
John R. Lenton
|
c1bef21920
|
Implemented support for in and not in operators.
|
2014-01-11 12:39:33 +00:00 |
|