Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sparkfun/micropython
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c07fda7
Choose a base ref
...
head repository: micropython/micropython
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 40df953
Choose a head ref
  • 5 commits
  • 14 files changed
  • 4 contributors

Commits on Nov 20, 2025

  1. py/builtinimport: Support relative import in custom __import__ callback.

    The globals need to be forwarded from the caller's context.
    
    Signed-off-by: Damien George <damien@micropython.org>
    zsquareplusc authored and dpgeorge committed Nov 20, 2025
    Configuration menu
    Copy the full SHA
    48d96b4 View commit details
    Browse the repository at this point in the history
  2. extmod/asyncio: Pass globals in __import__ call.

    `globals()` needs to be provided in case `__import__` is a Python function.
    zsquareplusc authored and dpgeorge committed Nov 20, 2025
    Configuration menu
    Copy the full SHA
    4593843 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2025

  1. py/objdict: Implement bool and len unary ops for dict views.

    Currently, dict views (eg `dict.keys()`, `dict.values()`) do not implement
    the `bool` or `len` unary operations.  That may seem like a reasonable
    omission for MicroPython to keep code size down, but it actually leads to
    silently incorrect bool operations, because by default things are true.
    
    Eg we currently have:
    
        >>> bool(dict().keys())
        True
    
    which is wrong, it should be `False` because the dict is empty.
    
    This commit implements `bool` and `len` unary operations on dict views by
    simply delegating to the existing dict unary op function.
    
    Fixes issue micropython#12385.
    
    Signed-off-by: Damien George <damien@micropython.org>
    dpgeorge committed Nov 21, 2025
    Configuration menu
    Copy the full SHA
    1284203 View commit details
    Browse the repository at this point in the history
  2. docs/library/os: Clarify ilistdir tuples size element.

    The currently documentation for ilistdir tuples says that the size element
    is included based on the platform. However, this is not the case as it is
    included based on the filesystem type. This commit makes the according
    adjustment.
    
    Fixes issue micropython#17516.
    
    Signed-off-by: Alex Tran <alex.t.tran@gmail.com>
    alectric-tr authored and dpgeorge committed Nov 21, 2025
    Configuration menu
    Copy the full SHA
    7a15c97 View commit details
    Browse the repository at this point in the history
  3. rp2: Fix RP2350 and RP2350B pin alt functions.

    RP2350 builds were using the incomplete `rp2_af.csv` alt function table
    (originally made for RP2040) which broke pins > 31 in RP2350B (48-pin
    QFN-80) builds:
    
        >>> machine.Pin(31)
        Pin(GPIO31, mode=IN, pull=PULL_DOWN)
    
        >>> machine.Pin(32)
        Pin(GPIO32, mode=ALT, pull=PULL_DOWN, alt=31)
    
    To fix this, separate alt-functions tables for RP2350 and RP2350B are added
    in this commit.
    
    UART_AUX (alt function 11) was also missing, along with XIP_CS1 and
    CORESIGHT_TRACE, and they are  now added as well.
    
    Signed-off-by: Phil Howard <github@gadgetoid.com>
    Signed-off-by: Damien George <damien@micropython.org>
    Gadgetoid authored and dpgeorge committed Nov 21, 2025
    Configuration menu
    Copy the full SHA
    40df953 View commit details
    Browse the repository at this point in the history
Loading