Commit Graph

46 Commits

Author SHA1 Message Date
Quentin Guidée
ab8f731515 Fixed some conflicts 2020-02-12 17:42:58 +01: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
Quentin Guidée
a44fceb297 Merge remote-tracking branch 'upstream/master' into omega-dev 2020-01-07 16:35:38 +01:00
Ruben Dashyan
389fbbca3a [python/port] Support for unicode strings 2020-01-06 15:15:19 +01:00
Quentin Guidée
cbb2fb2a19 Merge remote-tracking branch 'upstream/master' into omega-dev 2019-11-19 20:13:56 +01:00
Romain Goyet
7607c4cba4 [python/modion] Use constants to identify keys 2019-11-19 10:08:16 +01:00
Romain Goyet
9d66b23848 [python] Add an ion module 2019-11-19 10:08:16 +01:00
Jean-Baptiste Boric
0971d72cec [python] Implement get_keys in kandinsky 2019-10-11 20:07:51 +02:00
Jean-Baptiste Boric
1d575739bc [python] Implement wait_vblank in kandinsky 2019-10-11 19:50:47 +02:00
Léa Saviot
c421cf709d [python] Generated moduledefs.h file 2019-08-21 11:13:13 +02:00
Léa Saviot
ff833536dd [python] Clean and update port/genhdr/qstrdefs.in.h 2019-08-21 10:58:26 +02:00
Léa Saviot
0975ba0f10 [python] Upgrade to micropython 1.11 2019-08-21 10:58:12 +02:00
Romain Goyet
926b96cafb [python/kandinsky] Expose the fill_rect method
Which allows for *much* faster graphics
2019-04-26 17:44:27 +02:00
Léa Saviot
3bd3e64e36 [python/turtle] Order the qstr 2018-12-11 14:42:04 +01:00
Léa Saviot
3249ccb695 [python/turtle] "back()" shortcut for "backwards()" 2018-12-10 14:31:44 +01:00
Léa Saviot
c8a5972243 [python/turtle] Turtle::circle(radius, angle) 2018-12-07 10:51:14 +01:00
Léa Saviot
cc3beb6014 [python/turtle] Turtle::reset() method 2018-12-06 17:26:43 +01:00
Romain Goyet
efaa87d36c Merge branch 'master' into python_turtle 2018-11-16 09:46:11 +01:00
Romain Goyet
1142fd00a2 [python] Use a custom modtime implementation
It only exposes "monotonic" and "sleep" functions, which are the
only part of CPython's time we can actually do at the moment.
2018-11-15 14:18:01 +01:00
Damien Nicolet
24630011b1 [code] keep only CPython equivalent functions in utime module 2018-11-10 00:00:03 +01:00
Damien Nicolet
79bfc7f112 [code] time module 2018-11-09 01:30:22 +01:00
Jean-Baptiste Boric
c89a369a08 [python] Add getters for turtle module 2018-10-30 18:26:13 +01:00
Jean-Baptiste Boric
fcf7cc33cf [python] Implement turtle.position() 2018-10-30 18:10:25 +01:00
Jean-Baptiste Boric
0a05b94b4d [python] Turtle module improvements 2018-10-28 14:16:00 +01:00
Jean-Baptiste Boric
464c1a5c95 [python] Initial turtle module 2018-10-27 14:24:36 +02:00
Romain Goyet
b3b29c214c [python] Don's sort QSTRs before processing them
The order matters because of the codepoint2name routine
2018-06-26 14:18:55 +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
73250e727a [python] Update to MicroPython 1.9.4 2018-06-04 16:10:14 +02:00
Romain Goyet
55e4c955f4 Upgrade to MicroPython 1.9.3 2018-04-09 14:43:15 +02:00
Romain Goyet
651d5715e4 [python] Adding mp_hal_input 2018-02-01 14:10:26 +01:00
Émilie Feral
5c23003e50 [apps] Python: Refining random module 2018-01-16 13:19:27 +01:00
MaxBzh
4011290e7a Add Urandom module in Python 2018-01-05 14:28:25 +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
5cc9aa53f2 [python] Fixed underscore missing.
Change-Id: I58fb379c9ad070c15fb4d3487baa42f861c40b25
2017-11-17 14:05:23 +01:00
Romain Goyet
9fa5ac0acf [python] Use the extended math functions 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
Romain Goyet
16584c5a88 [python] Initial import of MicroPython 1.9.1
Change-Id: I1a8bafe720fb865f9418fc1e50de1184312e1653
2017-08-04 17:56:24 +02:00