stijn
3c014a67ea
py: Implement __dict__ for instances.
...
Note that even though wrapped in MICROPY_CPYTHON_COMPAT, it is not
fully compatible because the modifications to the dictionary do not
propagate to the actual instance members.
2016-01-03 20:51:26 +02:00
Dave Hylands
7281d95aee
py: Make dir report instance members
2016-01-03 20:37:18 +02:00
Antonin ENFRUN
b50030b1d0
tests/uctypes: Test item assignment for scalar arrays.
2016-01-03 20:32:51 +02:00
Antonin ENFRUN
26ed00118b
uctypes: Implement assignment for scalar array
2016-01-03 20:23:20 +02:00
Damien George
8212d97317
py: Use polymorphic iterator type where possible to reduce code size.
...
Only types whose iterator instances still fit in 4 machine words have
been changed to use the polymorphic iterator.
Reduces Thumb2 arch code size by 264 bytes.
2016-01-03 16:27:55 +00:00
Paul Sokolovsky
17f324b836
py/frozenmod: Store frozen module names together, to quickly scan them.
2016-01-03 18:08:45 +02:00
Damien George
1b0aab621b
py: Change struct and macro for builtin fun so they can be type checked.
2016-01-03 11:53:44 +00:00
Damien George
3d2daa2d03
py: Change exception traceback data to use size_t instead of mp_uint_t.
...
The traceback array stores qstrs and line numbers. qstrs are typed as
size_t, and line numbers should safely fit in size_t as well.
2016-01-02 22:04:12 +00:00
Damien George
ae4865efa1
unix/Makefile: Move include of mpconfigport.mk to before mkenv.mk.
...
So that if MICROPY_FORCE_32BIT is set mpconfigport.mk it influences
mkenv.mk.
2016-01-02 21:56:03 +00:00
Paul Sokolovsky
09630e48ce
unix/.gitignore: Ignore gcov files.
2016-01-02 14:50:17 +02:00
Paul Sokolovsky
98f7729848
unix/unix_mphal: Be sure to wrap dupterm code with MICROPY_PY_OS_DUPTERM.
2016-01-01 22:55:45 +02:00
Paul Sokolovsky
8fa9264430
unix/unix_mphal: Handle exceptions in call to dupterm's .read().
2016-01-01 22:39:29 +02:00
Paul Sokolovsky
467504da01
extmod/moduos_dupterm: Handle exceptions in call to dupterm's .write()
2016-01-01 22:06:38 +02:00
Paul Sokolovsky
30b7344eb0
extmod/moduos_dupterm: Make mp_uos_dupterm_tx_strn() function reusable.
...
Function to actually spool output terminal data to dupterm object.
2016-01-01 16:43:35 +02:00
Paul Sokolovsky
00ee84e1e1
py: Clean up instantiation of dupterm object.
...
To comply with already established scheme for extmod's.
2016-01-01 14:22:57 +02:00
Paul Sokolovsky
9bbfd5efd4
py/mpconfig: Make configuration of dupterm object reusable.
2016-01-01 13:16:18 +02:00
Paul Sokolovsky
ddea7cb702
extmod/moduos_dupterm: Make uos.dupterm() implementation reusable.
...
That's just function which sets/gets dup terminal object, and can be
easily reused across ports.
2016-01-01 13:04:32 +02:00
Paul Sokolovsky
0992588811
py/frozenmod: Make frozen module content be 0-terminated.
...
To allow simple zero-terminated lexers.
2016-01-01 07:51:07 +02:00
Damien George
ed584e2ffd
docs: Bump version to 1.5.2.
2015-12-31 14:43:19 +00:00
Damien George
64ececb72f
lib/libc/string0: Use uintptr_t instead of uint32_t.
...
This makes the code portable to non-32-bit architectures.
2015-12-31 14:11:18 +00:00
Dave Hylands
8c936edeb2
stmhal: Fix USB on the STM32F429DISC board
...
The USB REPL has been broken since commit 1be0fde45c
This patch allows the STM32F429DISC board (which uses the USB_HS PHY)
2015-12-30 23:36:41 -08:00
Damien George
6dde019d93
py/map: In map lookup, check for fixed map independent of ordered map.
...
It's possible to have a fixed map that is properly hashed (ie not
simply ordered).
2015-12-31 00:24:33 +00:00
Damien George
4bd95f8b44
tools: Add C middle-processor to make builtin tables proper hash tables.
2015-12-31 00:24:33 +00:00
Peter Hinch
521759ee18
docs: Add discussion on interrupt handlers incl uPy specific techniques.
2015-12-31 00:02:09 +00:00
Paul Sokolovsky
fb7b715b7b
extmod/modlwip: Use _ERR_BADF instead of magic number.
2015-12-30 16:43:35 +02:00