Skip to content

[mypyc] Add chr(int) and ord(str) primitives - #15937

Open
ichard26 wants to merge 3 commits into
python:masterfrom
ichard26:moar-primitives
Open

ichard26 wants to merge 3 commits into
python:masterfrom
ichard26:moar-primitives

Conversation

@ichard26

Copy link
Copy Markdown
Collaborator

Towards mypyc/mypyc#644.

@ichard26
ichard26 requested a review from JukkaL November 13, 2023 17:43
unreachable
L5:
r7 = PyUnicode_FromOrdinal(r6)
return r7

@JukkaL JukkaL Feb 28, 2024 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This PR needs run tests to make sure the called C functions such as CPy_Ordinal do what is expected.

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