-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Comparing changes
Open a pull request
base repository: micropython/micropython
base: master
head repository: pybricks/micropython
compare: pybricks-v3.x
- 18 commits
- 29 files changed
- 3 contributors
Commits on Jun 29, 2025
-
ports/unix/modummap: add new ummap module
This adds a newu mmap module to the unix port. This is modeled after the standard mmap module and just contains minimal functionality to read and write to a mmap.
Configuration menu - View commit details
-
Copy full SHA for 622b478 - Browse repository at this point
Copy the full SHA 622b478View commit details -
ports/unix/modufcntl: new ufcntl module
This provides the ioctl function similar to the Python standard library
Configuration menu - View commit details
-
Copy full SHA for bda0112 - Browse repository at this point
Copy the full SHA bda0112View commit details -
pybricks: redirect stdout to stderr by default
Since we use graphics mode, text printed to stdout it not visible on the EV3 when running with brickrun. The ev3dev VS Code extension redirects stderr to the output pane, but not stdout. So we redirect stdout to stderr by default so that print() "just works".
Configuration menu - View commit details
-
Copy full SHA for 7373d67 - Browse repository at this point
Copy the full SHA 7373d67View commit details -
pybricks: skip memoryview_itemsize test in docker
When we run this test in the ev3dev-stretch/armel docker container, it fails because the 64-bit host python is used to generated the .exp file but the test is run using 32-bit ARM emulation which results in different sizes.
Configuration menu - View commit details
-
Copy full SHA for 5ad7093 - Browse repository at this point
Copy the full SHA 5ad7093View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e8fc11 - Browse repository at this point
Copy the full SHA 7e8fc11View commit details -
pybricks: ports/unix: increase default heap size
Images can use quite a bit of memory so we are running out of heap space. This increases the heap from 1M to 8M which is 1/4 of the total RAM on the EV3.
Configuration menu - View commit details
-
Copy full SHA for a095a21 - Browse repository at this point
Copy the full SHA a095a21View commit details -
pybricks: add workaround for StopIteration test
This adds a workaround for tests/basics/stopiteration.py on Python 3.5. It appears that Python fixed a bug after Python 3.5 that changed the behavior. Since Python 3.5 is no longer supported, it doesn't make sense to upstream a workaround. So we just add a hack for ev3dev-stretch.
Configuration menu - View commit details
-
Copy full SHA for d6a5eae - Browse repository at this point
Copy the full SHA d6a5eaeView commit details -
pybricks: skip thread_lock4 test
This is causing intermittent CI failures. In fact, it was disabled upstream in the past [1]. We don't support threading anyway, so we can ignore it as well. [1]: 567e7fc
Configuration menu - View commit details
-
Copy full SHA for 4ccf2eb - Browse repository at this point
Copy the full SHA 4ccf2ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cd9d4d - Browse repository at this point
Copy the full SHA 7cd9d4dView commit details -
pybricks: skip ubinascii_b2a_base64 test on ev3dev-stretch
The ubinascii_b2a_base64 test fails on ev3dev-stretch since it requires a Python 3.6 feature and ev3dev-stretch is stuck with Python 3.5.
Configuration menu - View commit details
-
Copy full SHA for 636965e - Browse repository at this point
Copy the full SHA 636965eView commit details -
py/mpstate: ensure scheduler only runs on main thread
This uses MP_STATE_IS_MAIN_THREAD macro to ensure that the scheduler only runs on the main thread. This is similar to the way CPython only allows pending calls on the main thread (ref: Py_AddPendingCall).
Configuration menu - View commit details
-
Copy full SHA for 736da94 - Browse repository at this point
Copy the full SHA 736da94View commit details -
py/mpthread: add mp_thread_schedule_exception()
This adds a new mp_thread_schedule_exception() function that performs the same function as PyThreadState_SetAsyncExc() in CPython. This is useful as a mechanism for cancelling/interrupting threads. https://docs.python.org/3/c-api/init.html#c.PyThreadState_SetAsyncExc
Configuration menu - View commit details
-
Copy full SHA for 24d83bf - Browse repository at this point
Copy the full SHA 24d83bfView commit details -
ports/unix/qstrdefsport: Add variant hook.
This adds a new `MICROPY_VARIANT_QSTR_DEFS_H` option to allow variants to add additional qstrs to the unix port. Signed-off-by: David Lechner <david@pybricks.com>
Configuration menu - View commit details
-
Copy full SHA for d5494ea - Browse repository at this point
Copy the full SHA d5494eaView commit details
Commits on Jun 30, 2025
-
py/mphal: Add mp_hal_stdout_tx_flush().
This adds a new, optional mp_hal_stdout_tx_flush() function and uses it to implement the `flush()` method for `sys.stdout`.
Configuration menu - View commit details
-
Copy full SHA for 96c45bf - Browse repository at this point
Copy the full SHA 96c45bfView commit details -
lib/stm32lib: Use Pybricks fork.
We need some fixes not relevant to MicroPython so we have to use our own fork now.
Configuration menu - View commit details
-
Copy full SHA for babfbb3 - Browse repository at this point
Copy the full SHA babfbb3View commit details -
py: make math and cmath modules extensible
Change math and cmath module registration from normal to extensible. This lets the fallback umath and ucmath names work when importing.
Configuration menu - View commit details
-
Copy full SHA for 73cbdab - Browse repository at this point
Copy the full SHA 73cbdabView commit details
Commits on Jul 11, 2025
-
Configuration menu - View commit details
-
Copy full SHA for f1ab677 - Browse repository at this point
Copy the full SHA f1ab677View commit details
Commits on Jul 17, 2025
-
py/mpprint: Allow 'i' format specifier for integers.
Add a case to handle 'i' in addition to 'd' in mp_vprintf(). There are some 3rd-party libraries that use 'i' in format strings, so it is useful to support this. Signed-off-by: David Lechner <david@pybricks.com>
Configuration menu - View commit details
-
Copy full SHA for 0777fd1 - Browse repository at this point
Copy the full SHA 0777fd1View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...pybricks-v3.x