acb133d1b1
makeqstrdata.py: Add support for conditionally defined qstrs.
Paul Sokolovsky
2014-04-10 03:38:42 +03:00
881d9af05e
objstr: Add TODO-optimize for using .join with arbitrary iterable.
Paul Sokolovsky
2014-04-10 01:42:40 +03:00
87bb093eb6
Merge branch 'master' of github.com:micropython/micropython
Damien George
2014-04-09 23:31:30 +01:00
7a5f9e94ad
stmhal: Make /src/main.py just /main.py; allow SD to be used as root device.
Damien George
2014-04-09 23:30:34 +01:00
1d2ba5ddf9
Merge pull request #455 from lurch/exception-messages
Damien George
2014-04-09 20:49:35 +01:00
038fd52faa
Merge branch 'str-index' of github.com:xbe/micropython into xbe-str-index
Damien George
2014-04-09 20:44:37 +01:00
5589db88c7
py: Implement complex division.
Damien George
2014-04-09 20:21:00 +01:00
e2835c16f4
py: Oops, fix emitcpy to compile with latest changes.
Damien George
2014-04-09 20:20:34 +01:00
f78cfaf8b5
Remove exception name from inside the exception message This prevents micropython printing exception messages like ImportError: ImportError: No module named 'foo'
Andrew Scheller
2014-04-09 19:56:38 +01:00
b5fbd0ba87
py: Add mp_obj_is_integer; make mp_get_index check for long int.
Damien George
2014-04-09 19:55:33 +01:00
d99944acdd
py: Clear state to MP_OBJ_NULL before executing byte code.
Damien George
2014-04-09 19:53:31 +01:00
a157e4caba
py: str.join can now take arbitrary iterable as argument.
Damien George
2014-04-09 19:17:53 +01:00
13d6739cc7
py: Generators can have their locals closed over.
Damien George
2014-04-09 19:01:45 +01:00
2bf7c09222
py: Properly implement deletion of locals and derefs, and detect errors.
Damien George
2014-04-09 15:26:46 +01:00
11d8cd54c9
py, compiler: Turn id_info_t.param into a set of flags.
Damien George
2014-04-09 14:42:51 +01:00
b140bff877
py, compile: Simplify initialisation of compiler structure.
Damien George
2014-04-09 12:54:21 +01:00
02a4c05c5f
py, compile: Reduce size of compiler structure.
Damien George
2014-04-09 12:50:58 +01:00
922ddd6415
py, compile: Combine have_star_arg, have_dbl_star_arg into star_flags.
Damien George
2014-04-09 12:43:17 +01:00
78035b995f
py, compiler: Clean up and compress scope/compile structures.
Damien George
2014-04-09 12:27:39 +01:00
fc18c8e834
Merge branch 'master' of github.com:micropython/micropython
Damien George
2014-04-09 02:32:00 +01:00
a5c18f3285
stmhal: Update windows driver; \r\n newlines and addition USB id.
Damien George
2014-04-09 02:23:24 +01:00
03b9ad7b01
gc.c: Remove superfluous typedef (bute defined in misc.h).
Paul Sokolovsky
2014-04-09 04:11:12 +03:00
b99ca2cdde
stmhal: Add windows cdc .inf driver to flash filesystem.
Damien George
2014-04-09 01:16:49 +01:00
8e6f98b166
stmhal: Improve help() function.
Damien George
2014-04-09 01:16:29 +01:00
229347139b
stmhal: Add functionality to Servo object.
Damien George
2014-04-09 00:45:45 +01:00
d9ec625d9a
Merge pull request #454 from dhylands/make-pins-multiple-named-pins
Damien George
2014-04-09 00:34:41 +01:00
3bbceeaaf7
Fix make-pins.py to support having multiple names for a pin.
Dave Hylands
2014-04-08 15:42:19 -07:00
2ee7304cb8
README: Python is required during build process unconditionally.
Paul Sokolovsky
2014-04-09 01:39:50 +03:00
88d7bba961
py: Make it so that printing a small int does not allocate heap memory.
Damien George
2014-04-08 23:30:46 +01:00
803b9263ab
Merge branch 'master' of github.com:micropython/micropython
Damien George
2014-04-08 23:11:51 +01:00
eec91057b8
py: Add comment mpz function, and free memory used for string printing.
Damien George
2014-04-08 23:11:00 +01:00
a985b4593d
objint: Implement int.from_bytes() class method and .to_bytes() method.
Paul Sokolovsky
2014-04-09 00:40:58 +03:00
3aa8ee7c9e
py: Add mp_get_buffer(), mp_get_buffer_raise() convenience functions to API.
Paul Sokolovsky
2014-04-09 00:25:28 +03:00
2b0091983f
tests: Oops: fix del-attr.
Damien George
2014-04-08 23:02:24 +01:00
b04488151e
stmhal: Make USRSW re-register the EXTI callback each time it's set.
Damien George
2014-04-08 22:35:42 +01:00
348435d279
py: Reinstate old pfenv_print_int function for stmhal's printf.
Damien George
2014-04-08 22:10:37 +01:00
f4c9b33abf
py: Remove DELETE_SUBSCR opcode, combine with STORE_SUBSCR.
Damien George
2014-04-08 21:32:29 +01:00
4671392d90
Merge branch 'master' of github.com:micropython/micropython
Damien George
2014-04-08 21:13:04 +01:00
1d24ea5207
py: Finish implementation of all del opcodes.
Damien George
2014-04-08 21:11:49 +01:00
4dcb605ac4
py: Make bytearray a proper type.
Paul Sokolovsky
2014-04-08 22:09:14 +03:00
3d9a39e211
py: Implement str.[r]index() and add tests for them.
xbe
2014-04-08 11:42:19 -07:00
729be9b3c7
py: Update comment in str.replace().
xbe
2014-04-07 14:46:39 -07:00
134c10e776
Merge branch 'master' of github.com:micropython/micropython
Damien George
2014-04-08 18:29:50 +01:00
47e1b85d9c
py: Improve inline assembler; add a few more opcodes.
Damien George
2014-04-08 18:28:33 +01:00
495d781a36
py: implement UNPACK_EX byte code (for: a, *b, c = d)
Damien George
2014-04-08 17:51:47 +01:00
f898a95cba
unix modffi: Support any object implementing buffer protocol as a native arg.
Paul Sokolovsky
2014-04-08 17:32:07 +03:00
7a70a3ae9a
bytes: Support buffer protocol.
Paul Sokolovsky
2014-04-08 17:30:47 +03:00
b9cf3d3730
bytearray: Support bytearray(int) constructor.
Paul Sokolovsky
2014-04-08 04:42:44 +03:00
e753d916c0
py: Raise exception for unimplemented byte codes.
Damien George
2014-04-08 16:49:28 +01:00
b7ffdcc1c7
py: Improve compiler syntax errors; catch more errors.
Damien George
2014-04-08 16:41:02 +01:00
2137bc7124
stmhal: in EXTI interrupt handler wrap uPy calls in gc_lock and nlr_buf.
Damien George
2014-04-08 15:21:26 +01:00
72cfc6ef0a
unix: Oops, remove nlr_jump test in main.
Damien George
2014-04-08 15:10:21 +01:00
26cf55ae05
Add a check for NULL nlr_top in nlr_jump.
Damien George
2014-04-08 14:08:14 +00:00
094ebef259
windows: Use most of the source files from unix/ port.
Damien George
2014-04-08 13:25:47 +00:00
73c79b9925
py: Continue line if last character is backslash.
Damien George
2014-04-08 11:33:28 +00:00
443e018a3f
py: Improve GC locking/unlocking, and make it part of the API.
Damien George
2014-04-08 11:31:21 +00:00
ff5639fd42
Merge pull request #451 from lurch/repr-fixes
Damien George
2014-04-08 12:11:40 +01:00
97790455fe
Improve REPL detecting when input needs to continue.
Damien George
2014-04-08 11:04:29 +00:00
12968fb6b2
Display \r and \t escape codes in string repr
Andrew Scheller
2014-04-08 02:42:50 +01:00
72d70cb045
unix, stmhal: Consistently use "FileIO" as class name for file objects.
Paul Sokolovsky
2014-04-08 04:08:16 +03:00
b8cf948550
unix, windows: There's no "help" builtin.
Paul Sokolovsky
2014-04-08 04:07:02 +03:00
a12a0f78b0
py: Rename pfenv_print_int to pfenv_print_mp_int, and add back former.
Damien George
2014-04-08 01:29:53 +01:00
97543c5285
Merge pull request #447 from dhylands/str-format-mpz
Damien George
2014-04-07 21:50:22 +01:00
23dc6d0ace
Fix truncation problem when using longlong implementation.
Dave Hylands
2014-04-07 13:44:12 -07:00
98dd6d7712
README: Be specific that ARMv7 Linux is supported.
Paul Sokolovsky
2014-04-07 23:46:08 +03:00
c4029e5079
Add string formatting support for longlong and mpz.
Dave Hylands
2014-04-07 11:19:51 -07:00
6827f9fc55
Add uPy welcome message to UNIX and Windows ports; update Teensy port.
Damien George
2014-04-07 13:27:50 +01:00
6c6f9d6782
windows: Make it compile with latest changes to py core.
Damien George
2014-04-07 13:20:06 +01:00
10072b72a5
Merge pull request #439 from lurch/makefile-tweaks
Damien George
2014-04-07 13:17:31 +01:00
1422865c99
Merge pull request #445 from lurch/test-sorted-sets
Damien George
2014-04-07 13:15:33 +01:00
a28507ab2b
py: Detect unmatched tripple quote in repl helper.
Damien George
2014-04-07 13:01:30 +01:00
34ba06b076
Merge pull request #444 from lurch/test-sorted
Damien George
2014-04-07 12:52:28 +01:00
1ff6011abc
Modify set tests to print sorted sets directly instead of creating temporary lists and sorting those in-place
Andrew Scheller
2014-04-07 05:00:03 +01:00
a1a9ab2b2c
Add tests for sorted() function and check that sorted(list) produces same output as list.sort()
Andrew Scheller
2014-04-07 04:41:54 +01:00
5e443f4b70
Merge remote-tracking branch 'upstream/master' into makefile-tweaks
Andrew Scheller
2014-04-07 01:41:24 +01:00
902d9552c5
Replace some Makefile commands with variables in py/mkenv.mk
Andrew Scheller
2014-04-07 01:35:45 +01:00
2bfd2dc770
py: Revert revert for allocation policy of set hash table.
Damien George
2014-04-07 01:16:17 +01:00
46bd12d57e
objset: Fix incorrect workaround against mp_set_init() munging alloc size.
Paul Sokolovsky
2014-04-07 03:07:21 +03:00
4d2238d2ce
tests: Fix more tests which depend on order of elements in set.
Paul Sokolovsky
2014-04-07 03:06:39 +03:00
3bb8663282
Merge branch 'master' of github.com:micropython/micropython
Damien George
2014-04-07 00:54:53 +01:00
bd6f3d31d2
tests: Fix few tests which depend on order of elements in set.
Paul Sokolovsky
2014-04-07 02:52:45 +03:00
c75427baaa
py: Revert change to allocation policy for mp_set_t.
Damien George
2014-04-07 00:54:04 +01:00
9f043da5c3
pip-micropython: Require command verb, but restrict to "install" only.
Paul Sokolovsky
2014-04-06 23:46:18 +03:00
07e24a6294
tests: Fix tests with sets to print sorted set.
Damien George
2014-04-07 00:42:09 +01:00
ff715429ea
py: Fix str.replace for case when arg 0 or 1 is empty string.
Damien George
2014-04-07 00:39:13 +01:00
36e75aef38
unix-cpy: Pass emit opt to mp_compile.
Damien George
2014-04-06 19:48:43 +01:00
b4dea46d8b
tests: Fix few tests which depend on order of elements in dict.
Paul Sokolovsky
2014-04-06 21:28:44 +03:00
e2adff3608
tests/dict2.py: Add combined test for dict(dict) and dict equality.
Paul Sokolovsky
2014-04-06 21:21:35 +03:00
7cf057aeeb
objdict: Implement equality operator.
Paul Sokolovsky
2014-04-06 21:20:52 +03:00
5fedd0c3b7
py: Fix dict.copy() and low-level map/set allocation.
Paul Sokolovsky
2014-04-06 21:00:58 +03:00
ea85a121f2
objdict: Support creating dict from another dict.
Paul Sokolovsky
2014-04-06 20:08:56 +03:00
cdd96dff2c
py: Implement more features in native emitter.
Damien George
2014-04-06 12:58:40 +01:00
65cad12d38
py: Add option to compiler to specify default code emitter.
Damien George
2014-04-06 11:48:15 +01:00