Skip to content

Micropython v1.27 merge#10931

Draft
dhalbert wants to merge 11 commits intoadafruit:mainfrom
dhalbert:micropython-v1.27-merge
Draft

Micropython v1.27 merge#10931
dhalbert wants to merge 11 commits intoadafruit:mainfrom
dhalbert:micropython-v1.27-merge

Conversation

@dhalbert
Copy link
Copy Markdown
Collaborator

@dhalbert dhalbert commented Apr 9, 2026

Merge MicroPython v1.27. This merge includes v1.26 as well.

  • Upstream extmod/modre.c includes support for pos and endpos arguments in match() and search(). This replaces our own implementation with upstream.
  • time epoch handling is now more like our own, also removing some differences.
  • MP_NORETURN is now used everywhere instead of NORETURN.
  • I fixed things related to ports/unix/coveragecpp.cpp so it is more like upstream.
  • ports/unix/main.c is now more like upstream.
  • Our own previous MICROPY_NONSTANDARD_TYPECODES now exists in upstream as MICROPY_PY_STRUCT_UNSAFE_TYPECODES.
  • MICROPY_PY___FILE__ is now MICROPY_MODULE___FILE__.
  • Floating point conversion to/from strings was improved in upstream.
  • Support for old Python versions was removed from upstream scripts. We had already done this.
  • Some iterator handling we had for arrays is now included in upstream.
  • objlist.c list_subscr() is now more like upstream.
  • shared/runtime/pyexec.c had a number of changes in upstream. We had diverged noticeably from it already. I spent time getting back closer to the upstream version.
  • I added \$ to some trailing whitespace in test .py.exp files so the whitespace would not be trimmed away, and noted this upstream: Handle trailing whitespace in test .exp files using regexp syntax micropython/micropython#19068 and tests/**/*.py.exp: protect trailing spaces with \$ micropython/micropython#19073.

In general, this was a pretty easy merge. It makes me want to submit a few more PR's upstream to remove other differences.

Before submitting this PR, I did a few successful builds and did some REPL smoke tests. I will start this as a draft PR and do some more in-depth testing on boards after all the builds are successful.

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