Skip to content

pathlib: Fix glob/rglob to return Path objects rather than strings.#1120

Merged
dpgeorge merged 1 commit into
micropython:masterfrom
dpgeorge:pathlib-fix-return-type-of-glob
Jun 19, 2026
Merged

pathlib: Fix glob/rglob to return Path objects rather than strings.#1120
dpgeorge merged 1 commit into
micropython:masterfrom
dpgeorge:pathlib-fix-return-type-of-glob

Conversation

@dpgeorge

@dpgeorge dpgeorge commented Jun 4, 2026

Copy link
Copy Markdown
Member

Summary

This now matches CPython behaviour.

(This fix was made in #1027 but that PR was closed.)

Testing

Updated the unittest that runs under CI.

Generative AI

Not used.

This now matches CPython behaviour.

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge dpgeorge force-pushed the pathlib-fix-return-type-of-glob branch from 763521e to 2bbca69 Compare June 19, 2026 02:47
@dpgeorge dpgeorge merged commit 2bbca69 into micropython:master Jun 19, 2026
5 checks passed
@dpgeorge dpgeorge deleted the pathlib-fix-return-type-of-glob branch June 19, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant