Closed GoogleCodeExporter closed 9 years ago
Original comment by dwhall...@gmail.com
on 26 Dec 2010 at 10:58
As a side effect, this Python feature can be added because PyMite's
UNPACK_SEQUENCE bytecode calls seq_getSubscript, which will now accept dict
types:
>>> d = {1: 'one', 2: 'two'}
>>> m,n = d
>>> n
2
>>> m
1
Original comment by dwhall...@gmail.com
on 26 Dec 2010 at 11:04
As a side effect, this Python feature can be added because PyMite's sum()
builtin function calls seq_getSubscript, which will now accept dict types:
>>> d = {1: 'one', 2: 'two'}
>>> sum(d)
3
Original comment by dwhall...@gmail.com
on 26 Dec 2010 at 11:06
Also adding bytearray to the types that can be passed to __bi.sum().
Original comment by dwhall...@gmail.com
on 27 Dec 2010 at 2:05
Minor changes:
- Changed t377 comment to say 377
- Changed some python object structures' length field from int16_t to uint16_t
for uniformity.
Original comment by dwhall...@gmail.com
on 27 Dec 2010 at 2:58
r716cef81d103
Mainlined directly. Tests pass.
Original comment by dwhall...@gmail.com
on 27 Dec 2010 at 3:03
Original issue reported on code.google.com by
dwhall...@gmail.com
on 26 Dec 2010 at 4:04