Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the first byte of CircuitPython 'mpy' files to "C" #4713

Merged
merged 1 commit into from
May 6, 2021

Conversation

jepler
Copy link
Member

@jepler jepler commented May 5, 2021

.. and also distinguish CircuitPython better in mpy-cross --version

In #4693, we allocated some flag bits differently than MicroPython (in order to fully distinguish async functions from generators). This makes our .mpy files incompatible with ones generated from any version of MP.

Change our first mpy signature byte to 'C' to distinguish us from MicroPython which uses 'M'.

Hopefully this will be the last bytecode incompatibility before 7.0. 馃槣

.. and also distinguish CircuitPython better in `mpy-cross --version`
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - this is certainly necessary.

@jepler jepler merged commit 03a4f85 into adafruit:main May 6, 2021
@kvc0
Copy link

kvc0 commented May 6, 2021

Oh shoot, thanks for catching this! 鉂わ笍

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.

None yet

3 participants