Damien George
ad97f2a49e
Merge pull request #136 from pfalcon/for-range-downto
compile_for_stmt_optimised_range(): Properly handle negative & unknown s...
11 years ago
Damien George
e9b4b7ac75
Merge pull request #135 from pfalcon/simple-raise
Crude attempt to implement RAISE_VARARGS (with args=1 so far only).
11 years ago
Damien George
46c9e97132
Merge pull request #134 from pfalcon/list-mul
list: Implement list multiplication.
11 years ago
Damien George
745ce4c2ad
Merge pull request #131 from chipaca/dict_fromkeys
Added dict.fromkeys.
11 years ago
Paul Sokolovsky
899c69f94c
compile_for_stmt_optimised_range(): Properly handle negative & unknown steps.
If step is not constant, in first approximation, we can't apply optimization,
(well, we could, but need a special case for this).
11 years ago
Paul Sokolovsky
5388a3c29a
Crude attempt to implement RAISE_VARARGS (with args=1 so far only).
11 years ago
Paul Sokolovsky
074d3b5f86
list: Implement list multiplication.
11 years ago
Paul Sokolovsky
bab5cfb34f
Unsupported operand types for binary operator: dump both args' types.
11 years ago
Paul Sokolovsky
d6f27fe317
mp_obj_equal(): Print which types' equality not implemented before assert().
11 years ago
Paul Sokolovsky
e06edce786
mp_repl_is_compound_stmt(): Thinko fix s/true/try/.
11 years ago
Paul Sokolovsky
4b919d0135
Dump few more bytecodes (based on attempt to run real-world code).
11 years ago
John R. Lenton
4bee76ebca
Added dict.fromkeys. Are we done with dict and #99 yet? I do think we are.
11 years ago
Damien George
c4f98cba18
Merge pull request #130 from iabdalkader/master
Fix usart_obj_tx_str
11 years ago
mux
e98cc2b691
Fix usart_obj_tx_str
* Fix usart_obj_tx_str to send the actual string.
* Fix issue #126
11 years ago
Damien George
ab04f5804f
Merge pull request #128 from chipaca/dict_views
dict views now, refactoring later.
11 years ago
John R. Lenton
9ec3a87189
dict views now, refactoring later.
11 years ago
Damien George
2d45429122
Use memcpy instead of strncpy; add usart.status to stm.
11 years ago
Damien George
0d4cab13dd
Merge pull request #127 from iabdalkader/master
Add USART Micro Python Bindings
11 years ago
Damien George
be842973b0
Merge pull request #123 from xbe/master
Implement str.strip
11 years ago
Damien George
f09e90316c
Merge pull request #121 from pfalcon/count-testcases
Count individual testcases when running tests.
11 years ago
Damien George
004cdcebfe
py: Implement base class lookup, issubclass, isinstance.
11 years ago
Damien George
062478e66d
Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr.
Creating of classes (types) and instances is much more like CPython now.
You can use "type('name', (), {...})" to create classes.
11 years ago
mux
e78e2dd305
Fix Makefile typo
11 years ago
mux
74269f86b9
Add DEBUG flag to Makefile
* Add a DEBUG flag to Makefile, enables: "-O0 -ggdb"
11 years ago
mux
c70ac7bf71
Add USART Micro Python Bindings
* Add Micro Python bindings to usart.c
* Export USART python object to namespace pyb
11 years ago
xbe
7b0f39f318
Implement str.strip
11 years ago
Paul Sokolovsky
926d2b621e
Count individual testcases when running tests.
The idea is simple: each print represents a testcase within a test unit.
As we don't have strict rules on which/how many testcase are put into
a test file, it's nice to have an idea how many *testcases* we have
totally. Would be nice to count how many testcases pass/fail, but
that's a bit less trivial.
11 years ago
Paul Sokolovsky
d944a66ead
Add string comparison tests.
Use computed string to exercise string interning code better.
11 years ago
Damien George
1143e5e72a
Merge pull request #120 from dhylands/make-build-quieter
Make build output quieter.
11 years ago
Damien George
93a9b5b64d
py: Proper framework for built-in 'type'.
11 years ago
Dave Hylands
4646801181
Make build output quieter.
Use make V=1e make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
This should fix issue #117
11 years ago
Damien George
6c73ca1e75
py: add variable argument exception constructor function.
Addresses issue #104 .
11 years ago
Damien George
199b9e04eb
Merge pull request #114 from pfalcon/streams-bootstrap
Define buffer and stream protocols, and other starting bits of io.* framework, with io.FileIO-like implementation for Unix
11 years ago
Damien George
bb2ed8e431
Merge pull request #119 from dhylands/teensy-use-py.mk
Update teemsy/Makefile to use py.mk
11 years ago
Damien George
84a2c6fbda
Merge pull request #118 from dhylands/stm-use-OBJCOPY-SIZE-macros
Update stm/Makeile to use OBJCOPY and SIZE macros
11 years ago
Damien George
38a2da68c2
py: Stuff qstr in object pointer; keys for mp_map_t are now always mp_obj_t.
11 years ago
Dave Hylands
ee0013d24e
Update teemsy/Makefile to use py.mk
I also fixed main.c to compile with the new str lexer
11 years ago
Dave Hylands
c1db58799d
Update stm/Makeile to use OBJCOPY and SIZE macros
While updating the teensy Makfile, I noticed that the stm Makefile
was using calling arm-none-eabi-objcopy and size rather than
$(OBJCOPY) and $(SIZE), so I added these 2 for consistency.
11 years ago
Paul Sokolovsky
e0e79ae6d6
unix: Add basic implementation of io.FileIO object.
Note: only read/write/close methods are defined so far, and class
is not exposed (use open() factory function, as usual).
11 years ago
Paul Sokolovsky
e98cf40c34
Add generic implementations of Python read()/write methods for streams.
These can be used for any object which implements stream protocol
(mp_stream_p_t).
11 years ago
Paul Sokolovsky
5b15daf6d1
Add support for stream and buffer protocols.
Stream protocol is abstraction of serial I/O. Buffer protocol is
abstraction of random-access I/O. These protocols are defined down
to C level, to allow generic, while still efficient algorithms
to be coded in C (like, buffered transfer between 2 stream objects,
saving/loading of buffer object to/from stream, etc). (Note that CPython
define buffer protocol on C level, but apparently not stream protocol).
11 years ago
Damien George
ea9e441a75
Merge pull request #112 from iabdalkader/master
Use LSI OSC for RTC clock when LSE is not detected
11 years ago
Damien George
9193f89296
Move lexerstr to main py directory (everyone uses it).
11 years ago
Damien George
dc141db64d
Merge branch 'master' of github.com:dpgeorge/micropython
11 years ago
Damien George
e6b6af5154
Merge pull request #111 from dhylands/teensy
Updated teensy to use common code from stm directory.
11 years ago
Damien George
b97669ab94
py: Improve __build_class__.
11 years ago
mux
5df3d47ee0
Use LSI OSC for RTC clock when LSE is not detected
* Fix rtc_init to use LSI for RTC clock source when LSE is not detected.
11 years ago
Dave Hylands
9b7b947b01
Updated teensy to use common code from stm directory.
Updated mconfigport.h to enable GC
11 years ago
Damien George
6d6bc9efc1
Merge pull request #108 from chipaca/dict_feats
Dictionary features that don't involve views or classmethods. First part of issue #99 .
11 years ago
Damien George
dfc0bac086
py: Small big fix to type declarations.
11 years ago