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

User-friendly __str__() implementation for Language class #250

Open
sanmai-NL opened this issue Dec 20, 2024 · 0 comments
Open

User-friendly __str__() implementation for Language class #250

sanmai-NL opened this issue Dec 20, 2024 · 0 comments

Comments

@sanmai-NL
Copy link

>>> from lingua import Language
>>> str(Language)
"<class 'builtins.Language'>"
>>> str(Language.ENGLISH)
'Language.ENGLISH'
>>> repr(Language.ENGLISH)
'Language.ENGLISH'

I propose to implement a __str__() method that shows a human-friendly name of the language, and I suggest it to be in English.

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

No branches or pull requests

1 participant