d07bf029b7
tests: Add small testcase for 3-arg slices.
Paul Sokolovsky
2014-05-25 22:17:06 +03:00
d8675541a9
py, vm: Where possible, make variables local to each opcode.
Damien George
2014-05-25 22:58:04 +01:00
f600a6a085
py: Slightly improve efficiency of mp_obj_new_str; rename str_new.
Damien George
2014-05-25 22:34:34 +01:00
2617eebf2f
Change const byte* to const char* where sensible.
Damien George
2014-05-25 22:27:57 +01:00
f88fc7bd23
Merge branch 'pfalcon-keep-strings-uninterned'
Damien George
2014-05-25 22:13:47 +01:00
5042bce8fb
py: Don't automatically intern strings in parser.
Damien George
2014-05-25 22:06:06 +01:00
5fd5af98d0
objlist: Implement support for arbitrary (3-arg) slices.
Paul Sokolovsky
2014-05-25 22:12:56 +03:00
de4b9329f9
py: Refactor slice helpers, preparing to support arbitrary slicing.
Paul Sokolovsky
2014-05-25 21:21:57 +03:00
3aaabd11a0
Merge branch 'keep-strings-uninterned' of github.com:pfalcon/micropython into pfalcon-keep-strings-uninterned
Damien George
2014-05-25 13:19:31 +01:00
ff4b6daa4f
sequence: Throw exception for not implemented slice steps.
Paul Sokolovsky
2014-05-25 03:02:57 +03:00
70328e419a
py: Implement more complete bytes comparison handling.
Paul Sokolovsky
2014-05-15 20:58:40 +03:00
ad3baec12f
sequence: Fix yet another case of improper sequence comparison.
Paul Sokolovsky
2014-05-15 19:09:06 +03:00
767e45c290
modos: Clean 64-bit issues.
Paul Sokolovsky
2014-05-15 18:38:54 +03:00
a47b64ae2d
objstringio: Implement io.BytesIO.
Paul Sokolovsky
2014-05-15 07:28:19 +03:00
0c124c3123
unix: Add "_os" module with stat().
Paul Sokolovsky
2014-05-14 22:08:45 +03:00
2a27365854
objstr.c: Partial implementation of .rsplit().
Paul Sokolovsky
2014-05-13 08:07:08 +03:00
51fab28e94
py: Improve mpz_and function.
Damien George
2014-05-13 22:58:00 +01:00
f6e430f77f
Merge pull request #600 from stinos/unix-exitcode
Damien George
2014-05-13 22:39:35 +01:00
aeeb448eb6
Merge pull request #613 from pfalcon/pauls-copyr
Damien George
2014-05-13 22:36:36 +01:00
da9f0924ef
py, unix: Add copyright for modules I worked closely on.
Paul Sokolovsky
2014-05-13 08:44:45 +03:00
7074f25768
tests/int-long.py: Try to expose issue with recent "&" optimization.
Paul Sokolovsky
2014-05-13 08:24:54 +03:00
561e425903
py: Fix bug in mpz_and function.
Damien George
2014-05-12 23:27:29 +01:00
cc97446ca5
unix: Implement -O option to turn off __debug__ flag.
Damien George
2014-05-12 23:14:52 +01:00
915197a8f9
py: Remove emit_glue init and deinit. Needed only for debugging.
Damien George
2014-05-12 23:11:14 +01:00
97f9a2813e
py: Add support for __debug__ constant.
Damien George
2014-05-12 23:07:34 +01:00
96f137b24a
py: Rename BYTE_CODE to BYTECODE (this was missed in previous rename).
Damien George
2014-05-12 22:35:37 +01:00
f42dbb98d1
unix: Fix linker errors when time/ffi modules are disabled
stijn
2014-05-12 21:46:29 +02:00
df94b717b4
modstruct: Implement count specifier for strings (e.g. "100s").
Paul Sokolovsky
2014-05-12 23:45:50 +03:00
da1fffaa09
Fix some unused variables, and silence a clang warning about initialization override in vmentrytable.h
Antonin ENFRUN
2014-05-12 00:21:50 +02:00
ceac71f1f5
unix: Add asm statements needed to read registers with clang. Code generated by gcc 4.9.0 is unchanged (same statements, different order).
Antonin ENFRUN
2014-05-12 00:24:41 +02:00
1b901c320b
tests: create result file for test/basics/memoryerror.py .
Antonin ENFRUN
2014-05-11 21:29:54 +02:00
6caae0bcb1
unix: Create __bss_start and _end symbols for Mach-O targets.
Antonin ENFRUN
2014-05-11 21:28:26 +02:00
147c80bf7c
modstruct: Use MP_OBJ_FUN_ARGS_MAX instead of -1.
Paul Sokolovsky
2014-05-11 22:50:27 +03:00
5ebd5f0f19
objstr: Slice indexing: support bytes properly.
Paul Sokolovsky
2014-05-11 21:22:59 +03:00
bfb8819c0c
objstr: Make .split() support bytes.
Paul Sokolovsky
2014-05-11 21:17:28 +03:00
5e5d69b35e
objstr: Make .join() support bytes.
Paul Sokolovsky
2014-05-11 21:13:01 +03:00
7e7940c39d
py: Fix __len__ special method result handling.
Paul Sokolovsky
2014-05-11 20:35:02 +03:00
c48d6f7add
py: Don't expect that type->getiter() always returns iterator, check for NULL.
Paul Sokolovsky
2014-05-11 20:32:39 +03:00
0f570cfccf
showbc: Decode MAP_ADD.
Paul Sokolovsky
2014-05-11 19:25:01 +03:00
ff30666c69
py: Add basic implementation of hasattr() function.
Paul Sokolovsky
2014-05-11 19:05:42 +03:00
a0863158f5
Merge pull request #605 from stinos/travis-mingw
Damien George
2014-05-11 18:48:15 +01:00
96b62855b5
Merge pull request #604 from stinos/windows-enablefeat
Damien George
2014-05-11 18:41:48 +01:00
ee7a880d6e
py: Use mp_arg_check_num in more places.
Damien George
2014-05-11 18:37:21 +01:00
5f9ebd36cd
travis: Add cross-compilation of mingw port
stijn
2014-05-11 19:33:13 +02:00
1d34e32431
py: frozenset() creates an empty frozenset.
Damien George
2014-05-11 18:28:48 +01:00
b9d8091d0e
windows: Enable frozen set and sys.exit
stijn
2014-05-10 20:44:20 +02:00
9e040b7cd8
unix: Use standard return codes for main
stijn
2014-05-10 19:42:06 +02:00
2323ef9182
py: Rename globally-accessible tuple functions, prefix with mp_obj_.
Damien George
2014-05-11 18:00:45 +01:00
c59af52e84
py: Rename some unichar functions for consistency.
Damien George
2014-05-11 17:53:11 +01:00
89755ae67f
py: Rename MICROPY_SYS_EXIT to MICROPY_MOD_SYS_EXIT.
Damien George
2014-05-11 17:35:43 +01:00
f92a0d4d16
stmhal: Enable frozenset. Takes 292 text bytes in ROM.
Damien George
2014-05-11 17:27:31 +01:00
bd651d1a67
Merge pull request #597 from stinos/mingw-compilation
Damien George
2014-05-11 15:06:26 +01:00
c3dcb590b8
Merge pull request #603 from stinos/windows-tests-newline
Damien George
2014-05-11 15:03:57 +01:00
18ceb7055b
Merge branch 'master' of github.com:micropython/micropython
Damien George
2014-05-11 12:10:35 +01:00
a7a1a38df4
stmhal: Update CC3000 driver to newer version.
Damien George
2014-05-11 12:09:13 +01:00
eea0118654
py: Give up and make mp_obj_str_get_data() deal with bytes too.
Paul Sokolovsky
2014-05-11 13:51:24 +03:00
a4dbc73e8a
tests: Fix handling of newlines from expected output files
stijn
2014-05-11 12:45:02 +02:00
b2d4fc06fc
objstr: Make *strip() accept bytes.
Paul Sokolovsky
2014-05-11 13:17:29 +03:00
ce6c10172b
tests: Really fix import.
Paul Sokolovsky
2014-05-11 03:45:42 +03:00
b4acd028b6
tests: Fix import.
Paul Sokolovsky
2014-05-11 03:40:32 +03:00
ea9708092e
objtuple: Go out of the way to support comparison of subclasses.
Paul Sokolovsky
2014-05-11 03:16:04 +03:00