xbe
8562de6c48
py/objstr.c: Remove done TODOs.
11 years ago
Damien George
4750a8398b
Merge pull request #367 from pfalcon/del-name
py: Implement support for "except Exception as var" clause.
11 years ago
Paul Sokolovsky
f909034400
py: Implement support for "except Exception as var" clause.
For this, needed to implement DELETE_NAME bytecode (because var bound
in except clause is automatically deleted at its end).
http://docs.python.org/3/reference/compound_stmts.html#except :
"When an exception has been assigned using as target, it is cleared at
the end of the except clause."
11 years ago
Paul Sokolovsky
4b2b7ceca7
runtime: RT_BINARY_OP_EXCEPTION_MATCH: don't fall thru in case of wrong types.
11 years ago
Paul Sokolovsky
1673420053
vm: Abstract working with tagged pointers in VM using macro accessors.
Based on issues raised during recent review and inconsistency of different
implementations.
11 years ago
Damien George
f357a19202
stmhal: Fix issues with USB CDC init and receive.
Late USB enumeration could clear settings after they had been set.
Now fixed by not clearing some settings on init.
RX was blocking if received characters were not being processed, so
CTRL-C would not be picked up. Now "fixed" by not blocking, but
instead discarding incoming characters if they overflow the buffer.
11 years ago
Damien George
9050b2ee33
stmhal: Improved interface to accelerometer.
11 years ago
Damien George
6fc5449343
stmhal: Remove servo LED debugging.
11 years ago
Damien George
90834b956d
stm/stmhal: Change gammaf to tgammaf.
11 years ago
Damien George
d67441de18
Merge pull request #365 from xbe/tgamma
py/builtinmath.c: use tgamma() instead of gamma().
11 years ago
Damien George
1214028842
Merge pull request #354 from xbe/osx-fix
Fix OS X detection.
11 years ago
Damien George
506589a4b7
stmhal: Change flash MSD from fixed to removable drive.
11 years ago
xbe
1ea8fcfae4
py/builtinmath.c: use tgamma() instead of gamma().
gamma() is now deprecated.
11 years ago
xbe
606821007a
Fix OS X detection.
Switch to checking for the __APPLE__ and __MACH__ macros.
11 years ago
Damien George
5a16658b21
stmhal: Copy changes to math.c from stm port.
11 years ago
Damien George
e43e27cf79
Merge pull request #356 from iabdalkader/d2f
Implement __aeabi_f2d and __aeabi_d2f
11 years ago
Damien George
196990b8b1
Merge pull request #364 from pfalcon/mpz-unbreak-int-long
objint_mpz: Quick&dirty implementation of bitwise operations.
11 years ago
Damien George
23261f3a52
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
965e2bafea
stmhal: Improve LED intensity get/set method.
11 years ago
Damien George
badc9d4a95
py: Improve dir(): extract names from type->methods table.
11 years ago
Paul Sokolovsky
57207b8818
objint_mpz: Quick&dirty implementation of bitwise operations.
Made solely to unbreak int-long.py test which in turn uncovered thinko
with implementation of inplace ops. On mpz level, bitwise ops implemented
only for same-sign numbers, and are not efficient (unconditional calling of
mpn_cmp() is apparently superfluous).
11 years ago
Paul Sokolovsky
fd232c3ef7
run-tests: Dump output of failing tests to files again.
This was a long-standing regression from converting script from sh to python.
11 years ago
Damien George
5e756c9860
stmhal: Rename servo_TIM2_Handle -> TIM2_Handle.
11 years ago
Damien George
e254809505
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
908a670dfc
stmhal: Add intensity method for blue LED.
As part of this, rejig the way TIM3 is initialised, since it's now
shared by USB CDC and the blue LED PWM.
11 years ago
Damien George
02fa035800
stmhal: Add input() and pyb.input() functions.
11 years ago
Damien George
c91097223d
py: Remove some unnecessary exception objects.
11 years ago
Paul Sokolovsky
8dc768b96f
objgenerator: Add comments for latest mp_obj_gen_instance_t refactors.
11 years ago
Damien George
3ec0a1a32d
py: Add 'object' object.
11 years ago
Damien George
eabdf6718a
py: Add function to convert long int to float.
11 years ago
Damien George
8138205bea
stm/stmhal: Add more math stubs.
11 years ago
Damien George
6280587320
py: Fix types in new math functions.
11 years ago
Damien George
ffa37db5c5
py: Fix int -> machine_uint_t.
11 years ago
Damien George
4ab128bbee
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
26a4506da7
Merge pull request #360 from rjdowdall/master
Fixed some math functions and added more exceptions.
11 years ago
Rachel Dowdall
63c157e534
Merge branch 'master' of https://github.com/rjdowdall/micropython
11 years ago
Rachel Dowdall
2d15deebdc
Fixed floor division on mp ints and small ints. Added a floordivide test case.
11 years ago
Damien George
a6d53188b7
Merge pull request #359 from rjdowdall/master
Fixed some math functions and added more exceptions.
11 years ago
Damien George
365274da13
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Rachel Dowdall
56402796d8
Fixed floor division on mp ints and small ints. Added a floordivide test case.
11 years ago
Damien George
0119fc7532
stmhal: Servo driver can move at a given speed.
11 years ago
Damien George
463997f638
Merge pull request #358 from pfalcon/gen-exc-stack
objgenerator: Implement exception handling for generators
11 years ago
Rachel Dowdall
cde8631f15
Fixed modulo operator on ints and mp ints to agree with python. Added intdivmod.c and tests/basics/modulo.py.
11 years ago
Paul Sokolovsky
48caa09a9d
objgenerator: Implement .throw() method to throw exceptions into generator.
11 years ago
Paul Sokolovsky
61fd20f168
objgenerator: Implement throwing exceptions out of generator.
11 years ago
Paul Sokolovsky
c0abc28aa1
objgenerator: Keep exception stack within generator object, like value stack.
This is required to properly handle exceptions across yields.
11 years ago
Damien George
626f6b8133
stmhal: Add servo driver.
11 years ago
Rachel Dowdall
721c55dced
Added exception hierarchy except for OSError and UnicodeError (requires arguments). Comment out the errors that aren't needed if memory becomes an issue.
11 years ago
Damien George
d311655655
stmhal: Add time module with sleep function.
11 years ago
Damien George
ad7b84a7b9
stmhal: Add os module with a few basic functions.
11 years ago