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
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
Rachel Dowdall
249b9c761d
Fixed broken math functions that return bool and added some more.
11 years ago
Damien George
684164a8cf
stmhal: Add PYBv10 config; add RNG support.
11 years ago
Damien George
2fb37847a7
stmhal: Tidy up USB CDC+MSC device some more.
11 years ago
Damien George
fb1d6d097e
sthmal: Remove obsolete files.
11 years ago
Damien George
a6787edcea
stmhal: Tidy up USB device configuration. Make it use less RAM.
11 years ago
Damien George
c2a4cb4f04
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
fb25c2d95f
stmhal: USB CDC and MSC device work together.
11 years ago
Rachel Dowdall
17f45d41fe
Merge remote-tracking branch 'upstream/master'
11 years ago
Paul Sokolovsky
da8d21e0dd
showbc: Dump YIELD_FROM.
11 years ago
Damien George
b32db4e1ad
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
8913c04831
stmhal: Add support for USB MSC device.
This gives a functioning, independent MSC device.
11 years ago
Damien George
093b8a5fa6
Merge pull request #355 from pfalcon/str-bytes-types
Make str and bytes be proper types
11 years ago
Paul Sokolovsky
1ecea7c753
py: Make 'bytes' be a proper type, support standard constructor args.
11 years ago
Paul Sokolovsky
be020c27a8
py: Make 'str' be a proper type, support standard constructor args.
11 years ago
Paul Sokolovsky
5972b4c05f
objstr: Switch from in-object string data to ptr to separate memory area.
This is pre-requisite for having efficient implementation of str<->bytes
conversion, and having that efficient is required with unfortunare
str vs bytes dichotomy in Python3.
11 years ago
Paul Sokolovsky
42901554db
objint_longlong: Add regression test for improper inplace op implementation.
11 years ago
Damien George
c070ff24a9
Disable some math functions until they work correctly.
11 years ago
Damien George
7b4b78bc33
py: Put back proper ValueError for badly parsed integers.
11 years ago
Damien George
b035db355a
py: Make str.[r]partition more efficient.
11 years ago
Damien George
e3e7c2bafb
Merge pull request #351 from xbe/str-partition
Implement str.partition and add tests for it.
11 years ago
Damien George
dfbafabf6f
py: Improve mp_parse_num_integer; make it self contained.
11 years ago
Damien George
6e48f7fa85
py: Allow 'complex()' to take a string as first argument.
11 years ago
Damien George
c06ea7abf2
py: Implement parsing of infinity and nan for floats.
11 years ago
xbe
0a6894c24b
str.(r)partition: factor out duplicate code.
Switch str.rpartition to search from left to right. Factor the
duplicate code into one helper function.
11 years ago
xbe
4504ea8007
Implement str.rpartition and add tests for it.
11 years ago
xbe
613a8e3edf
Implement str.partition and add tests for it.
11 years ago