Damien George
328708eb25
stm: Re-instate C debugging USART port (disabled by default).
See pyb_usart_global_debug variable.
Also did some work on USB OTG, but nothing working yet.
11 years ago
Damien George
fd17921b75
Merge pull request #140 from Metallicow/art-branch
Small graphic - Useful for WebBanners, etc...
11 years ago
Damien George
69a818d418
py: Improve memory management for parser; add lexer error for bad line cont.
11 years ago
Damien George
97eb73cf84
Merge pull request #148 from pfalcon/list-cmp
Implement type virtual equality method support and implement comparisons for lists
11 years ago
Damien George
022630213a
Merge pull request #147 from dhylands/staticfs
Added memzip filesystem support for teensy
11 years ago
Damien George
e5863d9301
py: AssertionError is loaded from global, to match CPython.
11 years ago
Damien George
c0876f7ca8
Merge pull request #146 from pfalcon/assert-exc
Add AssertionError.
11 years ago
Mark Schafer
89cbded000
logo missing fill added
11 years ago
Paul Sokolovsky
1945e60aeb
list: Implement comparison operators.
11 years ago
Paul Sokolovsky
cc57bd2663
mp_obj_equal(): For non-trivial types, call out to type's special method.
11 years ago
Paul Sokolovsky
729e9cce7b
rt_binary_op(): Don't fall thru in case small_int op result doesn't fit back.
Currently it would report "operation not supported" which is confusing. Overall,
this is thinko leading to undefined behavior.
11 years ago
Dave Hylands
d80ee8bbfd
Added memzip filesystem support for teensy
You can now append a zipfile (containining uncomressed python sources)
to the micropython.hex file.
Use MEMZIP_DIR=directory when you call make, or set that in your
environment to include a different tree of source files.
Added sample /boot.py, /src/main.py, /test.py and /src/test.py files.
Added run command so that you can execute scripts from REPL (until import is implemented).
Added build directory to .gitignore
11 years ago
Paul Sokolovsky
c698d266d1
list: Add extend() methods and += operator.
11 years ago
Paul Sokolovsky
b81e1fdef7
Add AssertionError.
11 years ago
Damien George
eae16445d5
py: Implement staticmethod and classmethod (internally).
Still need to make built-ins by these names, and write tests.
11 years ago
Damien George
bcbeea0a47
py: Fix bug where == and != not handled for small_ints.
11 years ago
Damien George
cf11c961b4
stm: Disable usart calls from C.
Fixes Issue #132 .
11 years ago
Damien George
bc1d36924d
py: Fix emitcpy and emitnative's binary_op.
11 years ago
Damien George
8d4ccc49ed
Merge branch 'master' of github.com:dpgeorge/micropython
11 years ago
Damien George
683466e55f
Merge pull request #138 from chipaca/unify_bops
Merge RT_COMPARE_OPs with RT_BINARY_OPs.
11 years ago
Damien George
25042b19d2
py: Make arg to MP_BC_RAISE_VARARGS a byte.
11 years ago
Metallicow
b37af7f26f
Small graphic - Useful for WebBanners, etc...
License: However you want / MicroPython.
Thanks Damien :)
11 years ago
John R. Lenton
b8698fca75
unified the bops
11 years ago
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