Daniel Campora
475c60eefc
cc3200: Add alt param to Pin constructor.
2015-09-10 07:59:16 +02:00
Daniel Campora
86854c7071
cc3200: Adapt smoke.py for the new pin API.
2015-09-10 07:59:10 +02:00
Daniel Campora
e3f8777ee8
cc3200: Implement new Pin API.
2015-09-10 07:59:03 +02:00
Daniel Campora
ec8589e4c9
cc3200: Improve uniflash script and make it a bit more verbose.
2015-09-10 07:56:48 +02:00
Daniel Campora
b864e7afe4
cc3200: Remove the UART0 programming pins from the smoke test.
2015-09-10 07:56:46 +02:00
Damien George
75a811a6df
tests: Move int+unicode test to unicode-specific test directory.
2015-09-07 21:36:24 +01:00
Damien George
2b000474d9
py/lexer: Properly classify floats that look like hex numbers.
...
Eg 0e0 almost looks like a hex number but in fact is a float.
2015-09-07 17:33:44 +01:00
Damien George
0be3c70cd8
py/lexer: Raise SyntaxError when unicode char point out of range.
2015-09-07 17:19:17 +01:00
Damien George
081f9325f5
py/lexer: Raise NotImplError for unicode name escape, instead of assert.
2015-09-07 17:08:49 +01:00
Damien George
a7ffa972f3
tests: Add tests for non-compliant behaviour of lexer.
2015-09-07 16:59:55 +01:00
Damien George
558a016e2c
py/compile: Refine SyntaxError for repeated use of global/nonlocal.
2015-09-07 16:55:02 +01:00
Damien George
3a2171e406
py: Eliminate some cases which trigger unused parameter warnings.
2015-09-04 16:53:46 +01:00
Damien George
42cec5c893
py/objstr: Check for keyword args before checking for no posn args.
...
Otherwise something like bytes(abc=123) will succeed.
2015-09-04 16:51:55 +01:00
Damien George
55b11e6d38
py/objstr: For str.endswith(s, start) raise NotImpl instead of assert.
2015-09-04 16:49:56 +01:00
Damien George
0b7a66ab97
py/objbool: Simplify dispatch of bool binary op.
...
This optimises (in speed and code size) for the common case where the
binary op for the bool object is supported. Unsupported binary ops
still behave the same.
2015-09-04 16:46:15 +01:00
Damien George
ea5b59bfe6
py/compile: Only compile function annotations if really needed.
...
Function annotations are only needed when the native emitter is enabled
and when the current scope is emitted in viper mode. All other times
the annotations can be skipped completely.
2015-09-04 16:44:14 +01:00
Tony Abboud
8d8fdcb4be
stmhal: add option to query for the current usb mode
...
Fetch the current usb mode and return a string representation when
pyb.usb_mode() is called with no args. The possible string values are interned
as qstr's. None will be returned if an incorrect mode is set.
2015-09-03 23:30:43 +01:00
Damien George
821b7f22fe
py: Use mp_not_implemented consistently for not implemented features.
2015-09-03 23:14:06 +01:00
Damien George
25afc7da0d
tests: Add tests to improve coverage of objstr.c.
2015-09-03 23:06:18 +01:00
Damien George
e2aa117798
py/objstr: Simplify printing of bytes objects when unicode enabled.
2015-09-03 23:03:57 +01:00
Damien George
516982242d
py: Inline single use of mp_obj_str_get_len in mp_obj_len_maybe.
...
Gets rid of redundant double check for string type.
Also remove obsolete declaration of mp_obj_str_get_hash.
2015-09-03 23:01:07 +01:00
Paul Sokolovsky
8bf00084b6
py: Make "enumerate" qstr be conditional on MICROPY_PY_BUILTINS_ENUMERATE.
2015-09-03 19:35:52 +03:00
Damien George
81794fcd31
py/binary: Add support for array('q') and array('Q').
2015-09-01 16:31:48 +01:00
Damien George
22602cc37b
py/objstr: Make str.rsplit(None,n) raise NotImpl instead of assert(0).
2015-09-01 15:35:31 +01:00
Paul Sokolovsky
1b693543aa
tests: Skip exception_chain.py with native emitter.
2015-09-01 11:53:27 +03:00