Skip to content

[mypyc] Add support for C string literals in the IR #19383

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 7, 2025
Merged

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Jul 6, 2025

Previously only Python str and bytes literals were supported, but
sometimes we want zero-terminated C string literals instead. They
don't need to be allocated from the heap and are usually stored in a
read-only data section, so they are more efficient in some use cases.

These will be useful for a feature I'm working on.

JukkaL added 4 commits July 6, 2025 12:22
Previously only Python str and bytes literals were supported, but
sometimes we want zero-terminated C string literals instead. They
don't need to be allocated from heap and are usually stored in a
read-only data section, so they are more efficient in some use cases.
@JukkaL JukkaL merged commit b8dd6f3 into master Jul 7, 2025
13 checks passed
@JukkaL JukkaL deleted the mypyc-c-string branch July 7, 2025 13:16
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