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

Already on GitHub? Sign in to your account

Add gettext.c2py #13078

Merged
merged 1 commit into from
Nov 25, 2024
Merged

Add gettext.c2py #13078

merged 1 commit into from
Nov 25, 2024

Conversation

tomasr8
Copy link
Member

@tomasr8 tomasr8 commented Nov 23, 2024

gettext.c2py is currently undocumented (something I'm planning to fix) but in the meantime, let's add a stub for it.
Here's the source for the function:

https://github.com/python/cpython/blob/main/Lib/gettext.py#L195

It takes a string encoding a plural definition (more info here) and returns a function that takes an integer and returns another integer representing the plural form.

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@hauntsaninja hauntsaninja merged commit fadb539 into python:main Nov 25, 2024
63 checks passed
@tomasr8 tomasr8 deleted the c2py branch November 25, 2024 10:49
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