Skip to content

Rework constants in Python - #213

Merged
catilac merged 1 commit into
processing:mainfrom
tychedelia:constant
Jul 28, 2026
Merged

Rework constants in Python#213
catilac merged 1 commit into
processing:mainfrom
tychedelia:constant

Conversation

@tychedelia

Copy link
Copy Markdown
Member

Instead of having a big list of u32 "enums" in our python top level, switch to the p5 flavor of string constants. this is helpful because of constant overlap that happens between a few different unrelated areas and also avoids the possibility of passing a random u32 that just-so happens to work. it also organized things a bit more.

@tychedelia
tychedelia requested a review from catilac July 27, 2026 20:18

@catilac catilac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

omg beautiful

@catilac
catilac merged commit dc990fe into processing:main Jul 28, 2026
4 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.

2 participants