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
Damien George
1609f85582
Rename test so that it doesn't clash with Python math module.
11 years ago
Damien George
56f02eacfe
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
f78d9b1a72
stmhal: Add accelerometer driver; fix bug with LFN.
11 years ago
Rachel Dowdall
300c8bd4c2
Added ZeroDivisionError to float division.
11 years ago
Damien George
7caa7e0501
Merge pull request #353 from rjdowdall/master
Some math functions
11 years ago
Rachel Dowdall
a2f2f734ed
Added various simple functions to math module.
11 years ago
Rachel Dowdall
5a14a1d690
Added various simple functions to math module.
11 years ago
Damien George
d02f6eaa10
py: Fix int-longlong binary operations.
11 years ago
Damien George
7f8be59111
py: Allow hashing of functions and tuples.
11 years ago
Damien George
a925639247
py: Add math.e constant.
11 years ago
Damien George
2d7ff07175
py: Add mpz modulo operation.
11 years ago
Damien George
c412998c49
py: Add comment about bugs in objint_longlong.c.
11 years ago
Damien George
cd8b2baf43
py: Fix bug in mpz int, where small int is on lhs, mpz on rhs.
11 years ago
Damien George
494600bc99
stmhal: Add lcd.c to Makefile, and init LCD in main.
11 years ago
Damien George
e2e9011253
stmhal: Add LCD driver.
11 years ago
Damien George
b92d3e1fde
stmhal: Add fatfs support, working with flash and SD card.
11 years ago
Damien George
9e5ea4d768
stmhal: Add flash write support and flash storage driver.
11 years ago
Damien George
8a9a31e57b
stmhal: Add autoflash script, to flash a DFU device automatically.
11 years ago
Damien George
fb431bf556
stmhal: Add SD card support.
Just low-level read/write support. No filesystem yet.
11 years ago
Damien George
c44115f831
Merge branch 'master' of github.com:xbe/micropython
11 years ago
Damien George
781687c772
stmhal: Remove unnecessary include.
11 years ago
Damien George
6b144f62be
Merge pull request #347 from dhylands/stmhal-usart
stmhal - Add usart support
11 years ago
xbe
c55388823f
objstr.c: Replace size_t with machine_uint_t.
11 years ago
xbe
efe3422394
py: Clean up includes.
Remove unnecessary includes. Add includes that improve portability.
11 years ago
xbe
c93a22197b
unix: Clean up includes.
Remove unnecessary includes. Add includes that improve portability.
11 years ago
Dave Hylands
9c122029ec
stmhal - Add usart support
11 years ago
Paul Sokolovsky
51bbf6a006
Implement support for __str__ and __repr__ special methods in classes.
11 years ago
Paul Sokolovsky
75488d5639
unix-cpy: Switch to use MICROPY_FLOAT_IMPL config define.
11 years ago
Damien George
02a8543841
stmhal: Check CDC tx buffer has free space before filling with data.
11 years ago
Damien George
ecd58aec08
py: Fix bug in vstr_ins_blank_bytes.
11 years ago
Damien George
6c2455f481
stmhal: Put an array in ROM.
11 years ago
Damien George
fdbc22e4d2
stmhal: Disable redundant SystemCoreClockUpdate function.
11 years ago
Damien George
280e7208d8
Add vstr_ins and vstr_cut_out; improve stmhal readline.
11 years ago
Damien George
8b96af6907
stmhal: Get RTC working.
11 years ago
Damien George
07174c6fca
stmhal: Fix escape sequences in USB CDC input.
11 years ago
Damien George
e285511a23
stmhal: Get USB CDC REPL working.
New USB HAL is quite a bit improved over previous one. Now has better
callbacks and flow control.
REPL over USB CDC now works as before, except for soft-reset (since USB
driver uses malloc...).
11 years ago