Damien George
2cf6dfa280
stmhal: Prefix includes with py/; remove need for -I../py.
2015-01-01 21:06:20 +00:00
Damien George
b36be5ff51
unix-cpy: Prefix includes with py/; remove need for -I../py.
2015-01-01 20:41:52 +00:00
Damien George
6d7e47087f
unix: Prefix includes with py/; remove need for -I../py.
2015-01-01 20:40:19 +00:00
Damien George
3765ea419a
extmod: Prefix py/ for includes from py core directory.
2015-01-01 20:35:21 +00:00
Damien George
51dfcb4bb7
py: Move to guarded includes, everywhere in py/ core.
...
Addresses issue #1022 .
2015-01-01 20:32:09 +00:00
Paul Sokolovsky
db1ac360c3
emitnative: Disable warning in delete_fast for now (breaks test).
2015-01-01 22:09:18 +02:00
Paul Sokolovsky
8a8c1fc82f
py: Add basic framework for issuing compile/runtime warnings.
2015-01-01 22:09:18 +02:00
Damien George
ebde3c694f
py: Add guarded includes for asm-based headers.
2015-01-01 18:07:43 +00:00
Damien George
ddbcc79550
docs: Add quickref info about Servo; improve Servo docs.
2015-01-01 18:00:45 +00:00
Radomir Dopieralski
ce5b5caf8c
Add a command for converting the WAV files
...
Add a command for converting the WAV files to the amp skin tutorial, so that people can use their own files easily.
2015-01-01 17:56:05 +00:00
Damien George
84e0cf0d21
py: Change namedtuple error messages to reduce code size.
...
We are not word-for-word compatible with CPython exceptions, so we are
free to make them short but informative in order to reduce code size.
Also, try to make messages the same as existing ones where possible.
2015-01-01 15:43:25 +00:00
Damien George
7f23384d49
py: Make terse_arg_mismatch a global function and use it elsewhere.
...
Reduces code size when MICROPY_ERROR_REPORTING_TERSE is selected.
2015-01-01 15:33:50 +00:00
Paul Sokolovsky
276159e5dd
objnamedtuple: Make sure to initialize type structure completely.
2015-01-01 15:31:51 +02:00
stijn
021dc44009
py: Allow keyword arguments for namedtuple
2015-01-01 14:53:23 +02:00
stijn
12340147b0
py: Use sequence of strings for named tuple initialization
...
- remove single string initialization style
- take list of strings instead
- store list in the type for fast lookup
2015-01-01 14:53:23 +02:00
stijn
8422cac088
msvc: Support py/*.h includes per #1022
2015-01-01 13:10:54 +01:00
Damien George
e0ac194f4f
py: Fix rshift and not of zero/one edge cases in mpz.
...
Addresses issue #1027 .
2014-12-31 19:35:01 +00:00
Damien George
816a46a4ab
tests: Disable float/float2int.py on pyboard (needs double prec).
2014-12-31 18:46:18 +00:00
Paul Sokolovsky
2c75665445
objstr: Fix %d-formatting of floats.
2014-12-31 02:21:19 +02:00
Paul Sokolovsky
8a2cc1c7e4
stmhal: Add fake implementation of __aeabi_f2lz().
...
To make mp_obj_new_int_from_float() somehow work.
2014-12-30 00:52:41 +02:00
Paul Sokolovsky
5f68094e10
py: mp_obj_new_int_from_float() supported only for MICROPY_PY_BUILTINS_FLOAT.
2014-12-30 00:34:54 +02:00
Paul Sokolovsky
f79cd6a233
py: Implement mp_obj_new_int_from_float() for MICROPY_LONGINT_IMPL_NONE.
2014-12-30 00:33:32 +02:00
Paul Sokolovsky
12033df511
py: Partially fix float to int conversion.
...
This fixes conversion when float type has more mantissa bits than small int,
and float value has small exponent. This is for example the case of 32-bit
platform using doubles, and converting value of time.time(). Conversion of
floats with larg exponnet is still not handled correctly.
2014-12-30 00:22:50 +02:00
Damien George
e3fa8278b4
tools: Add script to generate a ChangeLog file.
...
We don't have an explicit ChangeLog file, but don't really need one
because we use a good version control system. This script is useful if
you need a pretty-printed ChangeLog for some reason.
2014-12-29 19:03:25 +00:00
Damien George
9ddbe291c4
py: Add include guards to mpconfig,misc,qstr,obj,runtime,parsehelper.
2014-12-29 01:02:19 +00:00