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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add gettext.c2py #13078

wants to merge 1 commit into from

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. 🤖🎉

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.

1 participant