Commit Graph

47 Commits

Author SHA1 Message Date
Joachim Le Fournis
36742789b0 [py] Support round on int 2020-11-30 14:01:12 +01:00
Romain Goyet
a840e7fb05 [liba] Define SEEK_CUR
For some reason it was defined in Python and raised re-def errors
2020-04-06 09:51:04 +02:00
Émilie Feral
61e7ec52e6 [python] matplotlib: make pyplot a submodule of matplotlib 2020-04-01 10:18:09 +02:00
Émilie Feral
7d5568ff1a [python] WIP: change change pyplot name: pyplot --> matplotlib.pyplot 2020-04-01 10:18:09 +02:00
Romain Goyet
c99bed6922 [python] Stub a matplotlib module 2020-04-01 10:18:08 +02:00
Émilie Feral
de74aa7e59 [python] Enable PYSTACK for emscripten platform: this "fixes" bug
probably due to gc_collect (we suspect that transpiled C does not have
access to javascript variables preventing it from collecting all
required roots and leading to deleting objects prematuraly). Enabling
PyStack reduces the use of the heap and fixes the bug.
2020-02-12 15:13:24 +01:00
Ruben Dashyan
389fbbca3a [python/port] Support for unicode strings 2020-01-06 15:15:19 +01:00
Romain Goyet
9d66b23848 [python] Add an ion module 2019-11-19 10:08:16 +01:00
Léa Saviot
03bb81215e [python/urandom] Use Ion::random to seed urandom 2019-04-17 11:46:01 +02:00
Léa Saviot
f9e2fc6974 [python] Fix typo 2019-04-17 11:46:00 +02:00
Romain Goyet
7fc34fe17f [python/turtle] Use an init method to reset the turtle 2018-11-16 18:33:05 +01:00
Romain Goyet
22a39a2fd6 [python/turtle] Use a dedicated folder 2018-11-16 10:31:16 +01:00
Romain Goyet
efaa87d36c Merge branch 'master' into python_turtle 2018-11-16 09:46:11 +01:00
Romain Goyet
d6a2238be6 [python] Clean the Kandinsky's module code 2018-11-15 17:12:01 +01:00
Romain Goyet
a3d6d6ddd6 [ion/timing] Cleanup 2018-11-15 16:19:07 +01:00
Romain Goyet
dbc866d289 [python] Use the proper time module 2018-11-15 14:59:56 +01:00
Romain Goyet
e73033b19c Merge branch 'master' into utime_module 2018-11-15 14:37:11 +01:00
Romain Goyet
d7a13ba8fd Revert to micropython_port_should_interrupt 2018-11-14 16:57:16 +01:00
Romain Goyet
5dfefb477a [python] Rename micropython_port_should_interrupt to micropython_port_vm_hook_loop 2018-11-13 10:06:23 +01:00
Damien Nicolet
f93bf97182 [ion] Sharing millis & micros for blackbox and simulator 2018-11-09 01:30:22 +01:00
Damien Nicolet
79bfc7f112 [code] time module 2018-11-09 01:30:22 +01:00
Jean-Baptiste Boric
464c1a5c95 [python] Initial turtle module 2018-10-27 14:24:36 +02:00
Romain Goyet
53fbd2367f [python] Switch MICROPY_QSTR_BYTES_IN_HASH to 2 (default) 2018-06-26 14:18:55 +02:00
Romain Goyet
217d0ccc10 [python] Enable builtins reversed 2018-06-08 17:26:37 +02:00
Romain Goyet
5008f40a66 [python] Enable builtins filter 2018-06-08 17:26:37 +02:00
Romain Goyet
e1b3e107da [python] Enable builtins frozenset 2018-06-08 17:26:37 +02:00
Romain Goyet
8acf50b50c [python] Enable builtins enumerate 2018-06-08 17:26:37 +02:00
Romain Goyet
b67388a9a9 [python] Enable builtins set 2018-06-08 17:26:37 +02:00
Romain Goyet
8094a02e71 [python] Don't compile MICROPY_HELPER_REPL for nothing 2018-06-08 17:26:37 +02:00
Romain Goyet
96846e9396 [python] Clean up the configuration files 2018-06-04 16:10:14 +02:00
Romain Goyet
21b5e898c3 Enable the urandom module in mpconfigport.h, not in uPy
Otherwise it breaks when upgrading uPy. Faulty commit 4011290.
2018-04-13 09:39:14 +02:00
Romain Goyet
8aef4d996c [python] Restore the should_interrupt routine 2018-04-11 10:27:18 +02:00
Romain Goyet
651d5715e4 [python] Adding mp_hal_input 2018-02-01 14:10:26 +01:00
Léa Saviot
f7766080c3 [python] Fixed the list[:] function. 2017-12-12 09:42:30 +01:00
Léa Saviot
2a0bc95097 [python] Fix min/max functions. 2017-12-12 09:42:10 +01:00
Léa Saviot
805bdd1381 [python] Fixed infinite recursion bug.
When running a script with infinite recursion, micropython now throws an
error instead of aborting and rebooting the device.

Change-Id: Icd409e56de58a48b25b6bdb30eea1e70b344cc14
2017-12-01 12:06:05 +01:00
Léa Saviot
b73170b77b [code] Print errors in the Python console.
Change-Id: If3a096ee46105229b6c4c77906826e78666cdc11
2017-11-17 14:05:23 +01:00
Romain Goyet
024067d8a8 Python: Use MPZ 2017-11-17 12:00:35 +01:00
Romain Goyet
9fa5ac0acf [python] Use the extended math functions 2017-11-17 11:59:49 +01:00
Romain Goyet
440813bdc3 [python] Switch to using doubles 2017-11-17 11:59:49 +01:00
Romain Goyet
247ea217fa [python] Enable the cmath module 2017-11-17 11:59:49 +01:00
Romain Goyet
2283736dfe [python] Enable the math module 2017-11-17 11:59:49 +01:00
Émilie Feral
52f5858ffd [python][apps/code] Enable interrupting python execution
Change-Id: Iadf7038f79f0289ce20d7ded42f8fe70894f0c0a
2017-08-28 13:30:46 +02:00
Émilie Feral
818c56bd45 [python] Enable float
Change-Id: I94111dd821fb3a9ef1e22ae5133c3a48285c52d5
2017-08-25 11:20:49 +02:00
Émilie Feral
b50296d9c2 [apps/code] Repare print() in micropython
Change-Id: I43c46748b15d83e071c7b7f1e8448384ce5ad77f
2017-08-25 11:20:48 +02:00
Émilie Feral
66275c29ab [python] Fix bug in mpconfigport
Change-Id: If020d660f9ac67a94731cf1f77986697826ae624
2017-08-08 17:05:33 +02:00
Romain Goyet
16584c5a88 [python] Initial import of MicroPython 1.9.1
Change-Id: I1a8bafe720fb865f9418fc1e50de1184312e1653
2017-08-04 17:56:24 +02:00