Skip to content

Added colorsys and test_colorsys from CPython#452

Merged
dpgeorge merged 1 commit into
micropython:masterfrom
mattytrentini:add_colorsys_module
Jul 11, 2026
Merged

Added colorsys and test_colorsys from CPython#452
dpgeorge merged 1 commit into
micropython:masterfrom
mattytrentini:add_colorsys_module

Conversation

@mattytrentini

Copy link
Copy Markdown
Contributor

Colorsys - and the associated test file - was copied from CPython with no changes.

Versions
colorsys.py: 7d28a6eb90e2e381e13ba21073c6868fdf6eb058
test_colorsys.py: 9b855de8d2808f725566e5e74a4134fd366689ea

Actually running test_colorsys was a challenge; we need to make it easier to execute tests in micropython-lib! That's the topic for another PR/discussion...

@Aluhut

Aluhut commented Jul 17, 2023

Copy link
Copy Markdown

I’m pretty new to micropython. I don’t get the message above. Does it mean that colorsys is available in micropython?

@mattytrentini

Copy link
Copy Markdown
Contributor Author

I’m pretty new to micropython. I don’t get the message above. Does it mean that colorsys is available in micropython?

No, this pull request hasn't been merged to master; so it isn't officially part of MicroPython yet. You can pick up this branch, however, and use it!

@dpgeorge dpgeorge left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good, thanks. A pretty small module verbatim copied from CPython.

Copied from CPython v3.14.6 with no changes.

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge dpgeorge force-pushed the add_colorsys_module branch from 2edadae to 55e1c80 Compare July 11, 2026 14:01
@dpgeorge dpgeorge merged commit 55e1c80 into micropython:master Jul 11, 2026
5 checks passed
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.

4 participants