Damien George
e97dddcdca
docs: Document pyb.main function to set main script.
2015-04-09 10:08:25 +01:00
Damien George
9988618e0e
py: Implement full func arg passing for native emitter.
...
This patch gets full function argument passing working with native
emitter. Includes named args, keyword args, default args, var args
and var keyword args. Fully Python compliant.
It reuses the bytecode mp_setup_code_state function to do all the hard
work. This function is slightly adjusted to accommodate native calls,
and the native emitter is forced a bit to emit similar prelude and
code-info as bytecode.
2015-04-07 22:43:28 +01:00
Daniel Campora
18bd51707c
cc3200: Enable the stdio UART for the LaunchXL only.
2015-04-07 12:12:16 +02:00
Daniel Campora
c7acfc90b9
cc3200: Enable pull-ups for the STDIO UART pins.
2015-04-07 10:50:20 +02:00
Damien George
c9aa1883ed
py: Simplify bytecode prelude when encoding closed over variables.
2015-04-07 00:08:17 +01:00
Damien George
78772ada0d
py: Implement calling functions with *args in native emitter.
2015-04-06 22:48:21 +01:00
Paul Sokolovsky
282ca09f8e
py: Add MICROPY_PY_BUILTINS_REVERSED, disable for minimal ports.
2015-04-07 00:17:11 +03:00
Paul Sokolovsky
e2d44e30c7
py: Add MICROPY_PY_BUILTINS_ENUMERATE, disable for minimal ports.
2015-04-06 23:51:29 +03:00
Paul Sokolovsky
96b60ed956
cc3200: Fix typo after previous refactor.
2015-04-05 22:32:41 +03:00
Paul Sokolovsky
2192824ad8
teensy: Fix function prototype.
2015-04-05 22:15:37 +03:00
Paul Sokolovsky
3a84c8b58d
string0.c: Move from stmhal/ to lib/.
2015-04-05 21:57:55 +03:00
Damien George
e5c4362a98
tests: Add some more tests to improve code coverage of corner cases.
2015-04-05 00:03:43 +01:00
Damien George
97abe22963
tests: Add tests to exercise lexer; and some more complex number tests.
2015-04-04 23:16:22 +01:00
Damien George
9dd3640464
tests: Add missing tests for builtins, and many other things.
2015-04-04 22:05:30 +01:00
Damien George
7e758b1cf8
stmhal, qemu-arm: Enable sys.maxsize attribute.
2015-04-04 22:04:53 +01:00
Daniel Campora
b9d850227d
cc3200: Add WLAN AP specific settings for each board.
2015-04-04 22:09:55 +02:00
Damien George
56606f3475
py: Implement delete for property and descriptors.
...
Without this patch deleting a property, or class with descriptor, will
call the setter with a NULL value and lead to a crash.
2015-04-04 20:15:31 +01:00
Damien George
0528c5a22a
py: In str unicode, str_subscr will never be passed a bytes object.
2015-04-04 19:42:03 +01:00
Damien George
0f6424efda
docs: Bump version to 1.4.1.
2015-04-04 17:41:11 +01:00
Damien George
40fc01f406
stmhal: Enable new str.splitlines() method.
2015-04-04 16:02:23 +01:00
Damien George
2801e6fad8
py: Some trivial cosmetic changes, for code style consistency.
2015-04-04 15:53:11 +01:00
Paul Sokolovsky
7f59b4b2ca
objstr: Fix bugs introduced by inability to have shadow variables.
...
Warnings lead to programming errors - as expected.
2015-04-04 01:55:40 +03:00
Paul Sokolovsky
acf6aec71c
objstr: Avoid variable shadowing.
2015-04-04 01:24:59 +03:00
Paul Sokolovsky
620058cc57
tests: Add test for str.splitlines().
2015-04-04 00:09:54 +03:00
Paul Sokolovsky
ac2f7a7f6a
objstr: Add .splitlines() method.
...
splitlines() occurs ~179 times in CPython3 standard library, so was
deemed worthy to implement. The method has subtle semantic differences
from just .split("\n"). It is also defined as working for any end-of-line
combination, but this is currently not implemented - it works only with
LF line-endings (which should be OK for text strings on any platforms,
but not OK for bytes).
2015-04-04 00:09:48 +03:00